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

Commit de61117e authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix NPE in MediaPlayerList"

parents 41a85b0c 3af4dc81
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -547,7 +547,7 @@ public class MediaPlayerList {
                if (intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) return;
                if (intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) return;


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