Merge change 22008 into eclair
* changes: When bringing up the media controller view, focus the play/pause button.
This commit is contained in:
@@ -282,6 +282,9 @@ public class MediaController extends FrameLayout {
|
|||||||
|
|
||||||
if (!mShowing && mAnchor != null) {
|
if (!mShowing && mAnchor != null) {
|
||||||
setProgress();
|
setProgress();
|
||||||
|
if (mPauseButton != null) {
|
||||||
|
mPauseButton.requestFocus();
|
||||||
|
}
|
||||||
disableUnsupportedButtons();
|
disableUnsupportedButtons();
|
||||||
|
|
||||||
int [] anchorpos = new int[2];
|
int [] anchorpos = new int[2];
|
||||||
@@ -416,6 +419,9 @@ public class MediaController extends FrameLayout {
|
|||||||
keyCode == KeyEvent.KEYCODE_SPACE)) {
|
keyCode == KeyEvent.KEYCODE_SPACE)) {
|
||||||
doPauseResume();
|
doPauseResume();
|
||||||
show(sDefaultTimeout);
|
show(sDefaultTimeout);
|
||||||
|
if (mPauseButton != null) {
|
||||||
|
mPauseButton.requestFocus();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
} else if (keyCode == KeyEvent.KEYCODE_MEDIA_STOP) {
|
} else if (keyCode == KeyEvent.KEYCODE_MEDIA_STOP) {
|
||||||
if (mPlayer.isPlaying()) {
|
if (mPlayer.isPlaying()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user