From c9031f88a0b9ed898c5ef652d16b577594a83642 Mon Sep 17 00:00:00 2001 From: Santhosh Kumar Thimmanna Bhattar Date: Mon, 8 Dec 2014 18:05:46 +0530 Subject: SnapdragonCamera: Do not prompt remember location pop up twice. - Remember location pop up is shown twice as start preview is called twice when the snapdragon camera application is launched for the first time. - Fix is to not to start the preview if it is already started Change-Id: I5435acec3e731b2536c24b947e5e720c1a8d0d6b --- src/com/android/camera/PhotoModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com') diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java index 32cd5dcf7..b0ad0ae20 100644 --- a/src/com/android/camera/PhotoModule.java +++ b/src/com/android/camera/PhotoModule.java @@ -606,7 +606,7 @@ public class PhotoModule return; } Log.v(TAG, "onPreviewUIReady"); - if (mCameraState == PREVIEW_STOPPED || mCameraState == INIT) { + if (mCameraState == PREVIEW_STOPPED) { startPreview(); } else { SurfaceHolder sh = mUI.getSurfaceHolder(); -- cgit v1.2.3