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

Commit 7e9cfdf2 authored by Tony Wickham's avatar Tony Wickham
Browse files

Fix crash if Launcher destroyed before AbsSwipeUpHandler invalidated

Test: manually call finish() in onActivityInit(), no crash when
handler is subsequently invalidated (did crash before this change)
Flag: None
Fixes: 295796661

Change-Id: I2dac7ca87bcdb700da2387309d5ad1d2f4ef43d7
parent ff1428ab
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -194,6 +194,7 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
                    ActiveGestureLog.INSTANCE.addLog("Launcher destroyed", LAUNCHER_DESTROYED);
                    mRecentsView = null;
                    mActivity = null;
                    mStateCallback.clearState(STATE_LAUNCHER_PRESENT);
                }
            };