summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-05-01 05:52:22 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-05-01 05:52:22 -0700
commit4426961e7b2eb7733dbb0661c47c6aea2f2f7e75 (patch)
treef3d98586824c9495eac1b8de6da8c05c0e1f8e2a /core/java
parent2066f7d9864d46858588a839a7f39a1526c737bc (diff)
parentc742c9fedb1c1d8ecd2914207af51b1ee4f34266 (diff)
Merge "Avoiding horizontal keypad navigation trapping within gallery."
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/widget/Gallery.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/widget/Gallery.java b/core/java/android/widget/Gallery.java
index 5e37fa8942f1..ea23a3aa1bfe 100644
--- a/core/java/android/widget/Gallery.java
+++ b/core/java/android/widget/Gallery.java
@@ -1187,15 +1187,15 @@ public class Gallery extends AbsSpinner implements GestureDetector.OnGestureList
case KeyEvent.KEYCODE_DPAD_LEFT:
if (movePrevious()) {
playSoundEffect(SoundEffectConstants.NAVIGATION_LEFT);
+ return true;
}
- return true;
-
+ break;
case KeyEvent.KEYCODE_DPAD_RIGHT:
if (moveNext()) {
playSoundEffect(SoundEffectConstants.NAVIGATION_RIGHT);
+ return true;
}
- return true;
-
+ break;
case KeyEvent.KEYCODE_DPAD_CENTER:
case KeyEvent.KEYCODE_ENTER:
mReceivedInvokeKeyDown = true;