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

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

Ignore null action in AppStateTrackerImpl.

Bug: 376154198
Test: Manual.
Change-Id: I766e666f65e8fee4e7539bc3f8f7c78f5d9992a3
parent a022a844
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -444,8 +444,13 @@ public class AppStateTrackerImpl implements AppStateTracker {
    private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            final String action = intent.getAction();
            if (action == null) {
                return;
            }

            final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, -1);
            switch (intent.getAction()) {
            switch (action) {
                case Intent.ACTION_USER_REMOVED:
                    if (userId > 0) {
                        mHandler.doUserRemoved(userId);