Merge "Fixing crash in Recents due to late onBootCompleted call (Bug 17572254)" into lmp-dev

This commit is contained in:
Winson Chung
2014-09-30 16:39:42 +00:00
committed by Android (Google) Code Review

View File

@@ -112,15 +112,11 @@ public class AlternateRecentsComponent implements ActivityOptions.OnAnimationSta
mTaskStackBounds = new Rect(); mTaskStackBounds = new Rect();
} }
public void onStart() {} public void onStart() {
public void onBootCompleted() {
// Initialize some static datastructures // Initialize some static datastructures
TaskStackViewLayoutAlgorithm.initializeCurve(); TaskStackViewLayoutAlgorithm.initializeCurve();
// Load the header bar layout // Load the header bar layout
reloadHeaderBarLayout(); reloadHeaderBarLayout();
mBootCompleted = true;
// Try and pre-emptively bind the search widget on startup to ensure that we // Try and pre-emptively bind the search widget on startup to ensure that we
// have the right thumbnail bounds to animate to. // have the right thumbnail bounds to animate to.
if (Constants.DebugFlags.App.EnableSearchLayout) { if (Constants.DebugFlags.App.EnableSearchLayout) {
@@ -138,6 +134,10 @@ public class AlternateRecentsComponent implements ActivityOptions.OnAnimationSta
} }
} }
public void onBootCompleted() {
mBootCompleted = true;
}
/** Shows the recents */ /** Shows the recents */
public void onShowRecents(boolean triggeredFromAltTab, View statusBarView) { public void onShowRecents(boolean triggeredFromAltTab, View statusBarView) {
mStatusBarView = statusBarView; mStatusBarView = statusBarView;