Merge "Don't crash if media metadata isn't available" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b9bd296455
@@ -114,7 +114,9 @@ public class KeyguardMediaPlayer {
|
|||||||
throw new IllegalStateException("cannot update controls, views not bound");
|
throw new IllegalStateException("cannot update controls, views not bound");
|
||||||
}
|
}
|
||||||
if (mediaMetadata == null) {
|
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);
|
mMediaNotifView.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user