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

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

Merge "Ignore null action in AppStateTrackerImpl." into main

parents f09d4f12 276586cd
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);