diff options
author | Camera Software Integration <camswint@quicinc.com> | 2017-08-03 01:59:02 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-08-03 01:59:02 -0700 |
commit | 67531a21cea56a084414cbe7381db0378d4f8787 (patch) | |
tree | 6fa95204823516fe7a3ac1ad9645fef2f7c78c7f /src/com/android/camera/PhotoModule.java | |
parent | 8d03fbee15bed2c723055109a37579bd1b97ae23 (diff) | |
parent | 3958e3bed29da4c6df6e458145414d57919f3f50 (diff) | |
download | android_packages_apps_Snap-67531a21cea56a084414cbe7381db0378d4f8787.tar.gz android_packages_apps_Snap-67531a21cea56a084414cbe7381db0378d4f8787.tar.bz2 android_packages_apps_Snap-67531a21cea56a084414cbe7381db0378d4f8787.zip |
Merge "Revert "SnapdragonCamera: Fix black screen on preview when switch photo/video"" into camera.lnx.3.0-dev
Diffstat (limited to 'src/com/android/camera/PhotoModule.java')
-rwxr-xr-x | src/com/android/camera/PhotoModule.java | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java index eb8a2f5e5..57ae68fe4 100755 --- a/src/com/android/camera/PhotoModule.java +++ b/src/com/android/camera/PhotoModule.java @@ -757,15 +757,6 @@ public class PhotoModule openCameraCommon(); resizeForPreviewAspectRatio(); updateFocusManager(mUI); - mActivity.runOnUiThread(new Runnable() { - public void run() { - Size size = mParameters.getPreviewSize(); - SurfaceHolder sh = mUI.getSurfaceHolder(); - if ( sh != null ){ - sh.setFixedSize(size.width-2, size.height-2); - } - } - }); } private void switchCamera() { @@ -821,15 +812,15 @@ public class PhotoModule // Start switch camera animation. Post a message because // onFrameAvailable from the old camera may already exist. mHandler.sendEmptyMessage(SWITCH_CAMERA_START_ANIMATION); - mActivity.runOnUiThread(new Runnable() { - public void run() { - Size size = mParameters.getPreviewSize(); - SurfaceHolder sh = mUI.getSurfaceHolder(); - if ( sh != null ){ - sh.setFixedSize(size.width-2, size.height-2); - } - } - }); + mActivity.runOnUiThread(new Runnable() { + public void run() { + Size size = mParameters.getPreviewSize(); + SurfaceHolder sh = mUI.getSurfaceHolder(); + if ( sh != null ){ + sh.setFixedSize(size.width-2, size.height-2); + } + } + }); } |