am 4426961e: Merge "Avoiding horizontal keypad navigation trapping within gallery."
* commit '4426961e7b2eb7733dbb0661c47c6aea2f2f7e75': Avoiding horizontal keypad navigation trapping within gallery.
This commit is contained in:
committed by
Android Git Automerger
commit
50bd9d6166
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user