diff options
| author | Jean-Baptiste Queru <jbq@google.com> | 2012-05-01 05:52:22 -0700 |
|---|---|---|
| committer | android code review <noreply-gerritcodereview@google.com> | 2012-05-01 05:52:22 -0700 |
| commit | 4426961e7b2eb7733dbb0661c47c6aea2f2f7e75 (patch) | |
| tree | f3d98586824c9495eac1b8de6da8c05c0e1f8e2a /core/java | |
| parent | 2066f7d9864d46858588a839a7f39a1526c737bc (diff) | |
| parent | c742c9fedb1c1d8ecd2914207af51b1ee4f34266 (diff) | |
Merge "Avoiding horizontal keypad navigation trapping within gallery."
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/widget/Gallery.java | 8 |
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; |
