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

Commit 6151a345 authored by Winson Chung's avatar Winson Chung
Browse files

Fix activity NPE when clearing flags

- If the activity is already destroyed then skip setting flags

Bug: 183400378
Test: Just adding a null check
Change-Id: Id2fddb5adb3b68302fb58fce340abd29237ca731
parent bbfef42e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3160,7 +3160,9 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
            MAIN_EXECUTOR.execute(() -> {
                // Needed for activities that auto-enter PiP, which will not trigger a remote
                // animation to be created
                if (mActivity != null) {
                    mActivity.clearForceInvisibleFlag(STATE_HANDLER_INVISIBILITY_FLAGS);
                }
            });
        }
    }