diff options
author | Steve Kondik <steve@cyngn.com> | 2016-11-09 01:17:49 -0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-11-13 23:33:36 -0800 |
commit | f886863e6d8024ef6d2c2712aa518a761fff6b9d (patch) | |
tree | 48e17f4ab5372589629da48779caa04cb66fca8a /src/com/android/camera/PhotoUI.java | |
parent | 4538ee80f8a9eb338281db00fb349e111eeb5aaf (diff) | |
download | android_packages_apps_Snap-f886863e6d8024ef6d2c2712aa518a761fff6b9d.tar.gz android_packages_apps_Snap-f886863e6d8024ef6d2c2712aa518a761fff6b9d.tar.bz2 android_packages_apps_Snap-f886863e6d8024ef6d2c2712aa518a761fff6b9d.zip |
snap: Better capture animation
* Modified version from Camera2
* Also adjust the callbacks for better response
Change-Id: I85ac23cdf35d9e2625799dd64b9f86aef103be7b
Diffstat (limited to 'src/com/android/camera/PhotoUI.java')
-rw-r--r-- | src/com/android/camera/PhotoUI.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/com/android/camera/PhotoUI.java b/src/com/android/camera/PhotoUI.java index 5aeccac8f..38c6497b6 100644 --- a/src/com/android/camera/PhotoUI.java +++ b/src/com/android/camera/PhotoUI.java @@ -83,7 +83,6 @@ public class PhotoUI extends BaseUI implements PieListener, private static final String TAG = "CAM_UI"; private int mDownSampleFactor = 4; - private final AnimationManager mAnimationManager; private final FocusRing mFocusRing; private PhotoController mController; private PreviewGestures mGestures; @@ -126,7 +125,6 @@ public class PhotoUI extends BaseUI implements PieListener, private float mSurfaceTextureUncroppedHeight; private ImageView mThumbnail; - private View mFlashOverlay; private SurfaceTextureSizeChangedListener mSurfaceTextureSizeListener; private SurfaceView mSurfaceView = null; @@ -251,7 +249,6 @@ public class PhotoUI extends BaseUI implements PieListener, }); mRenderOverlay = (RenderOverlay) mRootView.findViewById(R.id.render_overlay); - mFlashOverlay = mRootView.findViewById(R.id.flash_overlay); mShutterButton = (ShutterButton) mRootView.findViewById(R.id.shutter_button); mMenuButton = mRootView.findViewById(R.id.menu); @@ -266,7 +263,6 @@ public class PhotoUI extends BaseUI implements PieListener, } mFocusRing = (FocusRing) mRootView.findViewById(R.id.focus_ring); initIndicators(); - mAnimationManager = new AnimationManager(); mOrientationResize = false; mPrevOrientationResize = false; @@ -435,6 +431,8 @@ public class PhotoUI extends BaseUI implements PieListener, RectF r = new RectF(mSurfaceView.getLeft(), mSurfaceView.getTop(), mSurfaceView.getRight(), mSurfaceView.getBottom()); mController.onPreviewRectChanged(CameraUtil.rectFToRect(r)); + + onPreviewRectChanged(r); } @Override @@ -672,10 +670,6 @@ public class PhotoUI extends BaseUI implements PieListener, public void setCameraState(int state) { } - public void animateFlash() { - mAnimationManager.startFlashAnimation(mFlashOverlay); - } - public void enableGestures(boolean enable) { if (mGestures != null) { mGestures.setEnabled(enable); |