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

Commit de1171cb authored by Hansong Zhang's avatar Hansong Zhang Committed by android-build-merger
Browse files

Merge "Fix NPE in MediaPlayerList"

am: de61117e

Change-Id: I095fc15da33b2b46f981664de56075e4010858d3
parents 269b4b09 de61117e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -547,7 +547,7 @@ public class MediaPlayerList {
                if (intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) return;

                String packageName = intent.getData().getSchemeSpecificPart();
                if (packageName != null) {
                if (packageName != null && mMediaPlayerIds.containsKey(packageName)) {
                    removeMediaPlayer(mMediaPlayerIds.get(packageName));
                }
            } else if (action.equals(Intent.ACTION_PACKAGE_ADDED)