diff options
author | Jay Wang <jaywang@codeaurora.org> | 2016-04-01 17:50:30 -0700 |
---|---|---|
committer | Jay Wang <jaywang@codeaurora.org> | 2016-04-01 18:08:35 -0700 |
commit | 3d7f401c05b32a2689ab564ab4e05010b72ea5b7 (patch) | |
tree | b095446b2a1048f49c3410d426ed6189e125bf8e /src/com/android/camera/PhotoModule.java | |
parent | 914456d51e4707b1dfb24f400230f7e4ffdcc55f (diff) | |
download | android_packages_apps_Snap-3d7f401c05b32a2689ab564ab4e05010b72ea5b7.tar.gz android_packages_apps_Snap-3d7f401c05b32a2689ab564ab4e05010b72ea5b7.tar.bz2 android_packages_apps_Snap-3d7f401c05b32a2689ab564ab4e05010b72ea5b7.zip |
SnapdragonCamera: Fix occasional touch AF/AEC detection failure.
1. Fix the issue that during pause/resume, the preview region was
not set properly and focus manager ignore bottom part of preview
region.
2. On device with sensitive touch screen, single tap can be
detected as scroll gesture. Make change to consider scroll
gesture as single tap gesture if it is not the left swipe gesture.
Change-Id: I2139274e60799eac866b8bb70ea66144548b5845
CRs-Fixed: 997843
Diffstat (limited to 'src/com/android/camera/PhotoModule.java')
-rw-r--r-- | src/com/android/camera/PhotoModule.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java index 589f55152..8e192b543 100644 --- a/src/com/android/camera/PhotoModule.java +++ b/src/com/android/camera/PhotoModule.java @@ -2564,12 +2564,6 @@ public class PhotoModule // we will update focus manager with proper UI. if (mFocusManager != null && mUI != null) { mFocusManager.setPhotoUI(mUI); - - View root = mUI.getRootView(); - // These depend on camera parameters. - int width = root.getWidth(); - int height = root.getHeight(); - mFocusManager.setPreviewSize(width, height); } } |