diff options
author | Chih-Chung Chang <chihchung@google.com> | 2010-01-26 13:40:21 -0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2010-01-26 13:40:21 -0800 |
commit | dbbfcecfddc1a1767cec34a1172c87f23e089261 (patch) | |
tree | de39b688472c765f114a98d28f3d099ac92840d1 /src | |
parent | 52064aa4bacfae605823b99f675649b1786e8c8a (diff) | |
download | LegacyCamera-dbbfcecfddc1a1767cec34a1172c87f23e089261.zip LegacyCamera-dbbfcecfddc1a1767cec34a1172c87f23e089261.tar.gz LegacyCamera-dbbfcecfddc1a1767cec34a1172c87f23e089261.tar.bz2 |
Use public api instead of protected members.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/Switcher.java | 2 |
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); |