summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Rosaen <krosaen@android.com>2009-09-24 10:50:48 -0700
committerKarl Rosaen <krosaen@android.com>2009-09-24 10:50:48 -0700
commitff9c54b7214e99b3182f53f3089da0503f3edddc (patch)
tree82cd66003326c9f070e16ba5d0736c4d435cb02c
parent9f8d59eea1bdb3f979aaa8a5bdf9b1bdada7728b (diff)
downloadframeworks_base-ff9c54b7214e99b3182f53f3089da0503f3edddc.zip
frameworks_base-ff9c54b7214e99b3182f53f3089da0503f3edddc.tar.gz
frameworks_base-ff9c54b7214e99b3182f53f3089da0503f3edddc.tar.bz2
fix bug where siilent mode dissapears when it triggers instead of animating off to the left edge.
-rw-r--r--core/java/com/android/internal/widget/RotarySelector.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/com/android/internal/widget/RotarySelector.java b/core/java/com/android/internal/widget/RotarySelector.java
index a6ce7f8..42cbd07 100644
--- a/core/java/com/android/internal/widget/RotarySelector.java
+++ b/core/java/com/android/internal/widget/RotarySelector.java
@@ -668,7 +668,7 @@ public class RotarySelector extends View {
// wrapping the offset back to the other side so that when the animation is finished,
// the buttons will come back into their original places.
if (mDimplesOfFling > 0) {
- if (!goingRight && mRotaryOffsetX < 3 * mDimpleSpacing) {
+ if (!goingRight && mRotaryOffsetX < -3 * mDimpleSpacing) {
// wrap around on fling left
mRotaryOffsetX += mDimplesOfFling * mDimpleSpacing;
} else if (goingRight && mRotaryOffsetX > 3 * mDimpleSpacing) {