OSDN Git Service
(root)
/
android-x86
/
packages-apps-Camera.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52064aa
)
Use public api instead of protected members.
author
Chih-Chung Chang
<chihchung@google.com>
Tue, 26 Jan 2010 21:40:21 +0000
(13:40 -0800)
committer
Chih-Chung Chang
<chihchung@google.com>
Tue, 26 Jan 2010 21:40:21 +0000
(13:40 -0800)
src/com/android/camera/Switcher.java
patch
|
blob
|
history
diff --git
a/src/com/android/camera/Switcher.java
b/src/com/android/camera/Switcher.java
index
8cc6336
..
6a62b57
100644
(file)
--- 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);