summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorByunghun Jeon <bjeon@codeaurora.org>2016-02-08 16:18:21 -0800
committerCamera Software Integration <camswint@localhost>2016-02-19 19:25:06 -0700
commit7c209cbbd9a822c4c2466bdfa15af3dbb07816af (patch)
tree23e004efc68668d03571737c82a87a0ad1dd13d8 /src/com
parent829ca6c97c928a8a9ed83119d3a5ca2e19642b36 (diff)
downloadandroid_packages_apps_Snap-7c209cbbd9a822c4c2466bdfa15af3dbb07816af.tar.gz
android_packages_apps_Snap-7c209cbbd9a822c4c2466bdfa15af3dbb07816af.tar.bz2
android_packages_apps_Snap-7c209cbbd9a822c4c2466bdfa15af3dbb07816af.zip
SnapdragonCamera: Fix flickering Video preview
Fix flickering Video preview when pause/resuming Change-Id: I7e20cfdc06fc940f4fc96f408ce6ab570b0d8e64 CRs-Fixed: 971394
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/camera/VideoModule.java3
-rw-r--r--src/com/android/camera/VideoUI.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 06c351ed7..1bbe0204e 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -1064,7 +1064,7 @@ public class VideoModule implements CameraModule,
public void onResumeAfterSuper() {
mUI.enableShutter(false);
mZoomValue = 0;
-
+ mUI.showSurfaceView();
AudioManager am = (AudioManager)mActivity.getSystemService(Context.AUDIO_SERVICE);
mWasMute = am.isMicrophoneMute();
if(mWasMute != mIsMute) {
@@ -1232,6 +1232,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 f7b0928a2..be76e7115 100644
--- a/src/com/android/camera/VideoUI.java
+++ b/src/com/android/camera/VideoUI.java
@@ -582,7 +582,7 @@ public class VideoUI implements PieRenderer.PieListener,
}
public void hideSurfaceView() {
- mSurfaceView.setVisibility(View.GONE);
+ mSurfaceView.setVisibility(View.INVISIBLE);
}
public void showSurfaceView() {