From 9a1d5c26b78d3e7edb8a02961289f934a862cceb Mon Sep 17 00:00:00 2001 From: Byunghun Jeon Date: Wed, 6 Jul 2016 14:42:35 -0700 Subject: 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 --- src/com/android/camera/WideAnglePanoramaUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/camera/WideAnglePanoramaUI.java b/src/com/android/camera/WideAnglePanoramaUI.java index e0d82f2e2..5e6ffb7b6 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; -- cgit v1.2.3