We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2066f7d + c742c9f commit 4426961Copy full SHA for 4426961
core/java/android/widget/Gallery.java
@@ -1187,15 +1187,15 @@ public boolean onKeyDown(int keyCode, KeyEvent event) {
1187
case KeyEvent.KEYCODE_DPAD_LEFT:
1188
if (movePrevious()) {
1189
playSoundEffect(SoundEffectConstants.NAVIGATION_LEFT);
1190
+ return true;
1191
}
- return true;
1192
-
+ break;
1193
case KeyEvent.KEYCODE_DPAD_RIGHT:
1194
if (moveNext()) {
1195
playSoundEffect(SoundEffectConstants.NAVIGATION_RIGHT);
1196
1197
1198
1199
case KeyEvent.KEYCODE_DPAD_CENTER:
1200
case KeyEvent.KEYCODE_ENTER:
1201
mReceivedInvokeKeyDown = true;
0 commit comments