summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Coucheron <arco68@gmail.com>2017-05-08 07:18:07 +0200
committerArne Coucheron <arco68@gmail.com>2017-05-08 07:23:20 +0200
commit31499ecf2c9b9e7ded2848261206b9c6bbe4f5b2 (patch)
tree040fa99d9d93b148717b78e7e3cff73ee2d36873
parent1d0e136c0b781548bda4235d0e15b422876678ff (diff)
downloadandroid_packages_apps_Snap-31499ecf2c9b9e7ded2848261206b9c6bbe4f5b2.zip
android_packages_apps_Snap-31499ecf2c9b9e7ded2848261206b9c6bbe4f5b2.tar.gz
android_packages_apps_Snap-31499ecf2c9b9e7ded2848261206b9c6bbe4f5b2.tar.bz2
Snap: Fix crash switching from back to front cam in video mode
E CAM_VideoModule: startPreview paused=false device=false params=false E CAM_VideoModule: java.lang.Throwable E CAM_VideoModule: at com.android.camera.VideoModule.startPreview(VideoModule.java:1324) E CAM_VideoModule: at com.android.camera.VideoModule.switchCamera(VideoModule.java:3067) E CAM_VideoModule: at com.android.camera.VideoModule.onCameraPickerClicked(VideoModule.java:3251) E CAM_VideoModule: at com.android.camera.VideoMenu$4.onClick(VideoMenu.java:504) E CAM_VideoModule: at android.view.View.performClick(View.java:5637) E CAM_VideoModule: at android.view.View$PerformClick.run(View.java:22433) E CAM_VideoModule: at android.os.Handler.handleCallback(Handler.java:751) E CAM_VideoModule: at android.os.Handler.dispatchMessage(Handler.java:95) E CAM_VideoModule: at android.os.Looper.loop(Looper.java:154) E CAM_VideoModule: at android.app.ActivityThread.main(ActivityThread.java:6186) E CAM_VideoModule: at java.lang.reflect.Method.invoke(Native Method) E CAM_VideoModule: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889) E CAM_VideoModule: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779) Change-Id: I2005b09737fd4d739e1415a457b05d575da95582
-rw-r--r--src/com/android/camera/VideoModule.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index bdc1ccd..83f40ae 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -3061,6 +3061,7 @@ public class VideoModule extends BaseModule<VideoUI> implements
boolean mirror = (info.facing == CameraInfo.CAMERA_FACING_FRONT);
mFocusManager.setMirror(mirror);
mFocusManager.setParameters(mInitialParams);
+ readVideoPreferences();
setCameraParameters(UPDATE_PARAM_ALL);
startPreview();