summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByunghun Jeon <bjeon@codeaurora.org>2016-07-06 14:42:35 -0700
committerSteve Kondik <steve@cyngn.com>2016-08-03 15:45:47 -0700
commit9a1d5c26b78d3e7edb8a02961289f934a862cceb (patch)
tree7e419ae34075df84a9d42e956b1c1841348bcb07
parentee8c922bfd77879d72bf607eb87587fefeef25e1 (diff)
downloadandroid_packages_apps_Snap-9a1d5c26b78d3e7edb8a02961289f934a862cceb.zip
android_packages_apps_Snap-9a1d5c26b78d3e7edb8a02961289f934a862cceb.tar.gz
android_packages_apps_Snap-9a1d5c26b78d3e7edb8a02961289f934a862cceb.tar.bz2
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 e0d82f2..5e6ffb7 100644
--- a/src/com/android/camera/WideAnglePanoramaUI.java
+++ b/src/com/android/camera/WideAnglePanoramaUI.java
@@ -634,7 +634,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;