Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d71a77f2 authored by Robert Snoeberger's avatar Robert Snoeberger
Browse files

Don't crash if media metadata isn't available

Bug: 150454272
Test: manual - play music and look at lock screen
Change-Id: I5e776d8fc37c1f8894621be23a1ec99afa77bd11
parent 54304126
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);