summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByunghun Jeon <bjeon@codeaurora.org>2016-02-08 16:18:21 -0800
committerSteve Kondik <steve@cyngn.com>2016-08-21 18:46:32 -0700
commit16f6d256ca94b68cb64187297494937207019b3f (patch)
treeaae245992ea16e2ec4cce6cb0df427d401eaccd7
parent92c91ba18e3dde0fbd9fbd98a6475b89ebc3f3c0 (diff)
downloadandroid_packages_apps_Snap-16f6d256ca94b68cb64187297494937207019b3f.zip
android_packages_apps_Snap-16f6d256ca94b68cb64187297494937207019b3f.tar.gz
android_packages_apps_Snap-16f6d256ca94b68cb64187297494937207019b3f.tar.bz2
SnapdragonCamera: Fix flickering Video preview
Fix flickering Video preview when pause/resuming Change-Id: I7e20cfdc06fc940f4fc96f408ce6ab570b0d8e64 CRs-Fixed: 971394
-rw-r--r--src/com/android/camera/VideoModule.java2
-rw-r--r--src/com/android/camera/VideoUI.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 5743a70..fc75487 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -1166,6 +1166,7 @@ public class VideoModule implements CameraModule,
mZoomValue = 0;
resetExposureCompensation();
+ mUI.showSurfaceView();
initializeVideoControl();
showVideoSnapshotUI(false);
installIntentFilter();
@@ -1337,6 +1338,7 @@ public class VideoModule implements CameraModule,
mPaused = true;
mUI.showPreviewCover();
+ mUI.hideSurfaceView();
if (mMediaRecorderRecording) {
// Camera will be released in onStopVideoRecording.
onStopVideoRecording();
diff --git a/src/com/android/camera/VideoUI.java b/src/com/android/camera/VideoUI.java
index 967339f..6a8612c 100644
--- a/src/com/android/camera/VideoUI.java
+++ b/src/com/android/camera/VideoUI.java
@@ -574,7 +574,7 @@ public class VideoUI implements PieRenderer.PieListener,
}
public void hideSurfaceView() {
- mSurfaceView.setVisibility(View.GONE);
+ mSurfaceView.setVisibility(View.INVISIBLE);
}
public void showSurfaceView() {