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) {
|
||||
mbrComponent = MediaButtonReceiver.getMediaButtonReceiverComponent(context);
|
||||
if (mbrComponent == null) {
|
||||
Log.w(
|
||||
TAG,
|
||||
"Couldn't find a unique registered media button receiver in the " + "given context.");
|
||||
Log.i(TAG, "Couldn't find a unique registered media button receiver in the given context.");
|
||||
}
|
||||
}
|
||||
if (mbrComponent != null && mbrIntent == null) {
|
||||
@ -2128,7 +2126,7 @@ public class MediaSessionCompat {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MediaSession.QueueItem {" + "Description=" + mDescription + ", Id=" + mId + " }";
|
||||
return "MediaSession.QueueItem { Description=" + mDescription + ", Id=" + mId + " }";
|
||||
}
|
||||
|
||||
@RequiresApi(21)
|
||||
@ -3669,7 +3667,7 @@ public class MediaSessionCompat {
|
||||
break;
|
||||
case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user