diff options
author | likaid <likaid@codeaurora.org> | 2015-09-11 11:23:04 +0800 |
---|---|---|
committer | likaid <likaid@codeaurora.org> | 2015-09-11 11:23:04 +0800 |
commit | e77297860720e070e58184c339d3104482b13b0d (patch) | |
tree | 371a3dd27b6334852f40a4c371f152705b9a50bb | |
parent | 465c11e451e18b7f3e8109fdbbc56b866f7f8a56 (diff) | |
download | android_packages_apps_Snap-e77297860720e070e58184c339d3104482b13b0d.tar.gz android_packages_apps_Snap-e77297860720e070e58184c339d3104482b13b0d.tar.bz2 android_packages_apps_Snap-e77297860720e070e58184c339d3104482b13b0d.zip |
SnapdragonCamera: Do not show focus when click invalid area.
There is no area limit for click which cause the focus is
responsed when click the invalid area.
Add a judgement to avoid responding to invalid area.
Change-Id: I9229afe81d7f540136a706e89aac71346c370834
CRs-Fixed: 903140
-rw-r--r-- | src/com/android/camera/PhotoModule.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java index b7a38dd09..2caf7c594 100644 --- a/src/com/android/camera/PhotoModule.java +++ b/src/com/android/camera/PhotoModule.java @@ -2480,6 +2480,7 @@ public class PhotoModule } // Check if metering area or focus area is supported. if (!mFocusAreaSupported && !mMeteringAreaSupported) return; + if (! mFocusManager.getPreviewRect().contains(x, y)) return; mFocusManager.onSingleTapUp(x, y); } |