summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/IndicatorWheel.java
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-02-09 20:06:36 +0800
committerWu-cheng Li <wuchengli@google.com>2011-02-10 14:26:59 +0800
commit62776cd28a40b4c6ada4b4aa38683f45572ae266 (patch)
treeaacd074694c3abccb9dcd3fcf51dfe9de1a6ac7f /src/com/android/camera/ui/IndicatorWheel.java
parentc3c7e4da24f85910359431c95fd46e39904c11f1 (diff)
downloadLegacyCamera-62776cd28a40b4c6ada4b4aa38683f45572ae266.zip
LegacyCamera-62776cd28a40b4c6ada4b4aa38683f45572ae266.tar.gz
LegacyCamera-62776cd28a40b4c6ada4b4aa38683f45572ae266.tar.bz2
Fix shifted UI during HDMI output.
The background image has two problems. The ring in the image was not aligned in the middle. The sizes of top and bottom stretchable areas were different. bug:3416589 Change-Id: Ibcc2c556af147267078f495f6fdc08b68f30e441
Diffstat (limited to 'src/com/android/camera/ui/IndicatorWheel.java')
-rw-r--r--src/com/android/camera/ui/IndicatorWheel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/ui/IndicatorWheel.java b/src/com/android/camera/ui/IndicatorWheel.java
index 7295c46..c5c1b88 100644
--- a/src/com/android/camera/ui/IndicatorWheel.java
+++ b/src/com/android/camera/ui/IndicatorWheel.java
@@ -268,7 +268,7 @@ public class IndicatorWheel extends ViewGroup implements
// and the border is 64 pixels. This has to be consistent with the
// background.
mCenterX = right - left - 64;
- mCenterY = (bottom - top) / 2 + 3;
+ mCenterY = (bottom - top) / 2;
mShutterButton.layout(mCenterX - shutterButtonWidth / 2,
mCenterY - shutterButtonHeight / 2,
mCenterX + shutterButtonWidth / 2,