summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Newberger <alann@google.com>2014-03-05 11:50:40 -0800
committerAlan Newberger <alann@google.com>2014-03-05 11:50:40 -0800
commitacb0802ccfa23723686a154806c6ba2d6cba453f (patch)
tree65a255bd16e3ad6714e25a6ef2bacf61c7408edf /src
parent8c1f97010898020ef7776a91aa1e437ce621fedb (diff)
downloadandroid_packages_apps_Camera2-acb0802ccfa23723686a154806c6ba2d6cba453f.tar.gz
android_packages_apps_Camera2-acb0802ccfa23723686a154806c6ba2d6cba453f.tar.bz2
android_packages_apps_Camera2-acb0802ccfa23723686a154806c6ba2d6cba453f.zip
Remove onPreviewReadyToStart from PhotoModule
Removing this call results in no jank or loss of function on tested devices, and resolves an issue on certain devices where starting the callback prior to the preview results in a permanent mode cover. This issue was not observed in any other mode, i.e. video is working on warm start for all tested devices before and after this change. Bug: 13078926 Change-Id: I7a63011dd96d40466d6bc3bb7f6867552a2b0dc8
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/PhotoModule.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index 980f6e572..dc41a3174 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -1496,12 +1496,6 @@ public class PhotoModule
// Let UI set its expected aspect ratio
mCameraDevice.setPreviewTexture(mActivity.getCameraAppUI().getSurfaceTexture());
- // This is to notify app controller that preview will start next, so app
- // controller can set preview callbacks if needed. This has to happen
- // before preview is started as a workaround of the framework bug
- // related to
- // preview callbacks at b/12591410.
- mAppController.onPreviewReadyToStart();
Log.v(TAG, "startPreview");
mCameraDevice.startPreview();