diff options
author | Santhosh Kumar H E <skhara@codeaurora.org> | 2013-11-11 18:54:31 +0530 |
---|---|---|
committer | Santhosh Kumar H E <skhara@codeaurora.org> | 2013-11-12 11:00:00 +0530 |
commit | bdf3b484a6256306985f0618b452eed7088cb15b (patch) | |
tree | c7dab76717805187cc802bb744a270c4c409ba61 /src/com/android/camera/ui/FilmStripView.java | |
parent | d3c1bbb509400203e0752f0231a08c9175f8b5b8 (diff) | |
download | android_packages_apps_Snap-bdf3b484a6256306985f0618b452eed7088cb15b.tar.gz android_packages_apps_Snap-bdf3b484a6256306985f0618b452eed7088cb15b.tar.bz2 android_packages_apps_Snap-bdf3b484a6256306985f0618b452eed7088cb15b.zip |
Clear preview frame during activity pause in full screen camera mode.
CameraActivity Reloads views on filmstrip during resume (If
the CameraActivity go to pause state when user is in full screen
camera mode).
While reloading surface texture is destroyed and recreated.
So when user press power key to pause and unlock to resume,
till the surface texture is destroyed user see the old frame
(which was rendered before onPause). Followed by gray screen
till surface creation and start of preview. It created
filckering impact on UI. Fix here is to destroy the surfaceTexure
in onPause itself so during next resume user won't see old frame.
Change-Id: I035671cfa61dcfefe7a6392a316fae6739e81247
CRs-Fixed: 566255
Diffstat (limited to 'src/com/android/camera/ui/FilmStripView.java')
-rw-r--r-- | src/com/android/camera/ui/FilmStripView.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/FilmStripView.java b/src/com/android/camera/ui/FilmStripView.java index 074f80b8a..d2695b5a4 100644 --- a/src/com/android/camera/ui/FilmStripView.java +++ b/src/com/android/camera/ui/FilmStripView.java @@ -408,6 +408,8 @@ public class FilmStripView extends ViewGroup implements BottomControlsListener { public void goToFilmStrip(); public void goToFullScreen(); + + public void clearSurfaceViews(); } /** @@ -2330,6 +2332,19 @@ public class FilmStripView extends ViewGroup implements BottomControlsListener { scaleTo(1f, GEOMETRY_ADJUST_TIME_MS); } + @Override + public void clearSurfaceViews() { + for(ViewItem item: mViewItem) { + if (item == null) { + continue; + } + View v = item.getView(); + if (v != mCameraView) { + removeView(v); + } + } + } + private void cancelFlingAnimation() { // Cancels flinging for zoomed images if (isFlingAnimationRunning()) { |