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

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

Ignore null action in AppRestrictionController.

Bug: 375574028
Test: Manual.
Change-Id: I05bf9678d17c91715195ddd8465451bea1f70f1f
parent 7300c9f3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -373,7 +373,10 @@ public final class AppRestrictionController {
        @Override
        public void onReceive(Context context, Intent intent) {
            final String action = intent.getAction();
            switch (intent.getAction()) {
            if (action == null) {
                return;
            }
            switch (action) {
                case Intent.ACTION_PACKAGE_ADDED: {
                    if (!intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) {
                        final int uid = intent.getIntExtra(Intent.EXTRA_UID, -1);