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

Commit 8bf05afc authored by Winson Chung's avatar Winson Chung
Browse files

Fixing crash in Recents due to late onBootCompleted call (Bug 17572254)

Change-Id: I016dd8b7be9efa786291051152b1b56aac708e33
parent 51a400eb
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -112,15 +112,11 @@ public class AlternateRecentsComponent implements ActivityOptions.OnAnimationSta
        mTaskStackBounds = new Rect();
    }

    public void onStart() {}

    public void onBootCompleted() {
    public void onStart() {
        // Initialize some static datastructures
        TaskStackViewLayoutAlgorithm.initializeCurve();
        // Load the header bar layout
        reloadHeaderBarLayout();
        mBootCompleted = true;

        // Try and pre-emptively bind the search widget on startup to ensure that we
        // have the right thumbnail bounds to animate to.
        if (Constants.DebugFlags.App.EnableSearchLayout) {
@@ -138,6 +134,10 @@ public class AlternateRecentsComponent implements ActivityOptions.OnAnimationSta
        }
    }

    public void onBootCompleted() {
        mBootCompleted = true;
    }

    /** Shows the recents */
    public void onShowRecents(boolean triggeredFromAltTab, View statusBarView) {
        mStatusBarView = statusBarView;