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

Commit 53f7a608 authored by gang.huang's avatar gang.huang Committed by gang huang
Browse files

Ignore null action in AudioService.

Bug: 375569842
Test: Manual.
Change-Id: I50bef0d76bf85d8032a129acddd278ed92c6ee9b
parent bc6e650b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -12039,10 +12039,10 @@ public class AudioService extends IAudioService.Stub
                int uid = intent.getIntExtra(Intent.EXTRA_UID, Process.INVALID_UID);
                if (intent.getBooleanExtra(EXTRA_REPLACING, false) ||
                        intent.getBooleanExtra(EXTRA_ARCHIVAL, false)) return;
                if (action.equals(ACTION_PACKAGE_ADDED)) {
                if (ACTION_PACKAGE_ADDED.equals(action)) {
                    audioserverExecutor.execute(() ->
                            provider.onModifyPackageState(uid, pkgName, false /* isRemoved */));
                } else if (action.equals(ACTION_PACKAGE_REMOVED)) {
                } else if (ACTION_PACKAGE_REMOVED.equals(action)) {
                    audioserverExecutor.execute(() ->
                            provider.onModifyPackageState(uid, pkgName, true /* isRemoved */));
                }