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

Commit 89eb3640 authored by Winson Chung's avatar Winson Chung
Browse files

Skip setting the deferred launch callback if activity is already destroyed

Bug: 141886704
Change-Id: Iaa151335e5a3994a46406df399f2d159afe2c75e
parent 35903d2c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -515,6 +515,9 @@ public final class LauncherActivityInterface implements BaseActivityInterface<La

    @Override
    public void setOnDeferredActivityLaunchCallback(Runnable r) {
        getCreatedActivity().setOnDeferredActivityLaunchCallback(r);
        Launcher launcher = getCreatedActivity();
        if (launcher != null) {
            launcher.setOnDeferredActivityLaunchCallback(r);
        }
    }
}
 No newline at end of file