mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Reduce log severity to info for unhandled media buttons
PiperOrigin-RevId: 707485315
This commit is contained in:
parent
6d2331fd13
commit
16dcf91c1c
@ -441,9 +441,7 @@ public class MediaSessionCompat {
|
|||||||
if (mbrComponent == null) {
|
if (mbrComponent == null) {
|
||||||
mbrComponent = MediaButtonReceiver.getMediaButtonReceiverComponent(context);
|
mbrComponent = MediaButtonReceiver.getMediaButtonReceiverComponent(context);
|
||||||
if (mbrComponent == null) {
|
if (mbrComponent == null) {
|
||||||
Log.w(
|
Log.i(TAG, "Couldn't find a unique registered media button receiver in the given context.");
|
||||||
TAG,
|
|
||||||
"Couldn't find a unique registered media button receiver in the " + "given context.");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mbrComponent != null && mbrIntent == null) {
|
if (mbrComponent != null && mbrIntent == null) {
|
||||||
@ -2128,7 +2126,7 @@ public class MediaSessionCompat {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "MediaSession.QueueItem {" + "Description=" + mDescription + ", Id=" + mId + " }";
|
return "MediaSession.QueueItem { Description=" + mDescription + ", Id=" + mId + " }";
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiresApi(21)
|
@RequiresApi(21)
|
||||||
@ -3669,7 +3667,7 @@ public class MediaSessionCompat {
|
|||||||
break;
|
break;
|
||||||
case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
|
case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
|
||||||
case KeyEvent.KEYCODE_HEADSETHOOK:
|
case KeyEvent.KEYCODE_HEADSETHOOK:
|
||||||
Log.w(TAG, "KEYCODE_MEDIA_PLAY_PAUSE and KEYCODE_HEADSETHOOK are handled" + " already");
|
Log.w(TAG, "KEYCODE_MEDIA_PLAY_PAUSE and KEYCODE_HEADSETHOOK are handled already");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user