summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CaptureUI.java
diff options
context:
space:
mode:
authorByunghun Jeon <bjeon@codeaurora.org>2016-08-30 11:28:17 -0700
committerJay Wang <jaywang@codeaurora.org>2016-09-27 10:36:22 -0700
commit27569fecb612e545bda27ffa39f70d784e74f236 (patch)
tree39193f012d4288811723c2cf4d38ff882989326d /src/com/android/camera/CaptureUI.java
parentd3cf3176feee0fd022c7b6c52f6e4e07f84587fe (diff)
downloadandroid_packages_apps_Snap-27569fecb612e545bda27ffa39f70d784e74f236.tar.gz
android_packages_apps_Snap-27569fecb612e545bda27ffa39f70d784e74f236.tar.bz2
android_packages_apps_Snap-27569fecb612e545bda27ffa39f70d784e74f236.zip
SnapdragonCamera: Fix Camera launch latency
Call setModuleFromIndex() first before calling setContentView() so that camera open will happen faster Move query() cursor after setModuleFromIndex() Change-Id: I8407cb795248f4b814d8292014b6ddc79d2af7f8 CRs-Fixed: 1062069
Diffstat (limited to 'src/com/android/camera/CaptureUI.java')
-rw-r--r--src/com/android/camera/CaptureUI.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java
index 53518f3ae..c01db63f5 100644
--- a/src/com/android/camera/CaptureUI.java
+++ b/src/com/android/camera/CaptureUI.java
@@ -384,7 +384,6 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
mGestures.setRenderOverlay(mRenderOverlay);
mRenderOverlay.requestLayout();
- mActivity.setPreviewGestures(mGestures);
((ViewGroup)mRootView).removeView(mRecordingTimeRect);
mCameraControls.setPreviewRatio(0, true);
}
@@ -393,6 +392,7 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
mGestures.setCaptureUI(this);
mGestures.setZoomEnabled(mSettingsManager.isZoomSupported(cameraIds));
initializeZoom(cameraIds);
+ mActivity.setPreviewGestures(mGestures);
}
public ViewGroup getSceneAndFilterLayout() {