am 50bd9d61: am 4426961e: Merge "Avoiding horizontal keypad navigation trapping within gallery."

* commit '50bd9d616695b2162b84a204bc678b83a14f59c9':
  Avoiding horizontal keypad navigation trapping within gallery.
This commit is contained in:
Jean-Baptiste Queru
2012-05-01 06:47:24 -07:00
committed by Android Git Automerger

View File

@@ -1189,15 +1189,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;