summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByunghun Jeon <bjeon@codeaurora.org>2016-07-06 14:42:35 -0700
committerByunghun Jeon <bjeon@codeaurora.org>2016-07-06 14:47:16 -0700
commit97f707909b76bba8cda9b5355d9077cfcc3ff0d9 (patch)
tree90b512b13f3d6af78ab6c2cbb81125e96a7c71a9
parentde98a47425d6f9b1ee017829f99d61ad0620266f (diff)
downloadandroid_packages_apps_Snap-97f707909b76bba8cda9b5355d9077cfcc3ff0d9.tar.gz
android_packages_apps_Snap-97f707909b76bba8cda9b5355d9077cfcc3ff0d9.tar.bz2
android_packages_apps_Snap-97f707909b76bba8cda9b5355d9077cfcc3ff0d9.zip
SnapdragonCamera: Fix panorama cancel button location
Panorama cancel button location is not correct when device is rotated by 180 degrees. Set the proper value to the button when rotated by 180 degrees. Change-Id: I16cb6978f9b612944413fbc400d6aec920599ba7 CRs-Fixed: 1035742
-rw-r--r--src/com/android/camera/WideAnglePanoramaUI.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/WideAnglePanoramaUI.java b/src/com/android/camera/WideAnglePanoramaUI.java
index 171036446..14907e842 100644
--- a/src/com/android/camera/WideAnglePanoramaUI.java
+++ b/src/com/android/camera/WideAnglePanoramaUI.java
@@ -639,7 +639,7 @@ public class WideAnglePanoramaUI implements
+ progressLayout.getChildAt(0).getHeight() / 2;
int[] x = { r / 2, r / 10, r * 9 / 10, r / 2 };
- int[] y = { t / 2, (t + b1) / 2, (t + b1) / 2, b1 + pivotY };
+ int[] y = { t / 2 + pivotY, (t + b1) / 2, (t + b1) / 2, b1 + pivotY };
int idx1, idx2;
int g;