Merge "Don't crash if media metadata isn't available" into rvc-dev am: b9bd296455

Change-Id: Ib16801f41ac3271cc5ad1c893342dca9948fa653
This commit is contained in:
TreeHugger Robot
2020-03-25 00:02:16 +00:00
committed by Automerger Merge Worker

View File

@@ -114,7 +114,9 @@ public class KeyguardMediaPlayer {
throw new IllegalStateException("cannot update controls, views not bound");
}
if (mediaMetadata == null) {
throw new IllegalArgumentException("media metadata was null");
mMediaNotifView.setVisibility(View.GONE);
Log.d(TAG, "media metadata was null");
return;
}
mMediaNotifView.setVisibility(View.VISIBLE);