diff options
author | Marco Nelissen <marcone@google.com> | 2009-08-19 15:39:23 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2009-08-19 17:05:48 -0700 |
commit | d701e020769b7cc6dd492eadcb09083578074ee0 (patch) | |
tree | cdacbc3034203797b1ae4295130254b6da0e738a /core | |
parent | c818b141ee97a7a26fe069456d4b662d06c9eaea (diff) | |
download | frameworks_base-d701e020769b7cc6dd492eadcb09083578074ee0.zip frameworks_base-d701e020769b7cc6dd492eadcb09083578074ee0.tar.gz frameworks_base-d701e020769b7cc6dd492eadcb09083578074ee0.tar.bz2 |
When bringing up the media controller view, focus the play/pause button.
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/widget/MediaController.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/widget/MediaController.java b/core/java/android/widget/MediaController.java index 9910c37..446a992 100644 --- a/core/java/android/widget/MediaController.java +++ b/core/java/android/widget/MediaController.java @@ -282,6 +282,9 @@ public class MediaController extends FrameLayout { if (!mShowing && mAnchor != null) { setProgress(); + if (mPauseButton != null) { + mPauseButton.requestFocus(); + } disableUnsupportedButtons(); int [] anchorpos = new int[2]; @@ -416,6 +419,9 @@ public class MediaController extends FrameLayout { keyCode == KeyEvent.KEYCODE_SPACE)) { doPauseResume(); show(sDefaultTimeout); + if (mPauseButton != null) { + mPauseButton.requestFocus(); + } return true; } else if (keyCode == KeyEvent.KEYCODE_MEDIA_STOP) { if (mPlayer.isPlaying()) { |