summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2010-01-26 15:37:13 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-01-26 15:37:13 -0800
commit3e4a5244d3ca744e7ac7e89163ac562c24e002d9 (patch)
tree783812e1e5ba0cd93955d05e6aa1f38ea36af315 /src
parent8b1c724f385ae1973af382c500f58042f5b37466 (diff)
parentdbbfcecfddc1a1767cec34a1172c87f23e089261 (diff)
downloadLegacyCamera-3e4a5244d3ca744e7ac7e89163ac562c24e002d9.zip
LegacyCamera-3e4a5244d3ca744e7ac7e89163ac562c24e002d9.tar.gz
LegacyCamera-3e4a5244d3ca744e7ac7e89163ac562c24e002d9.tar.bz2
Merge "Use public api instead of protected members."
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/Switcher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/Switcher.java b/src/com/android/camera/Switcher.java
index 8cc6336..6a62b57 100644
--- a/src/com/android/camera/Switcher.java
+++ b/src/com/android/camera/Switcher.java
@@ -160,7 +160,7 @@ public class Switcher extends ImageView implements View.OnTouchListener {
int offsetTop = getPaddingTop() + mPosition;
int offsetLeft = (getWidth()
- - drawableWidth - mPaddingLeft - mPaddingRight) / 2;
+ - drawableWidth - getPaddingLeft() - getPaddingRight()) / 2;
int saveCount = canvas.getSaveCount();
canvas.save();
canvas.translate(offsetLeft, offsetTop);