mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Reduce log severity to info for unhandled media buttons
PiperOrigin-RevId: 707485315
This commit is contained in:
parent
6d2331fd13
commit
16dcf91c1c
1 changed files with 3 additions and 5 deletions
|
|
@ -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…
Reference in a new issue