Skip to content

Commit e320640

Browse files
Winson ChungAndroid (Google) Code Review
authored andcommitted
Merge "Fixing crash in Recents due to late onBootCompleted call (Bug 17572254)" into lmp-dev
2 parents a1b8416 + 8bf05af commit e320640

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,11 @@ public AlternateRecentsComponent(Context context) {
112112
mTaskStackBounds = new Rect();
113113
}
114114

115-
public void onStart() {}
116-
117-
public void onBootCompleted() {
115+
public void onStart() {
118116
// Initialize some static datastructures
119117
TaskStackViewLayoutAlgorithm.initializeCurve();
120118
// Load the header bar layout
121119
reloadHeaderBarLayout();
122-
mBootCompleted = true;
123-
124120
// Try and pre-emptively bind the search widget on startup to ensure that we
125121
// have the right thumbnail bounds to animate to.
126122
if (Constants.DebugFlags.App.EnableSearchLayout) {
@@ -138,6 +134,10 @@ public void onBootCompleted() {
138134
}
139135
}
140136

137+
public void onBootCompleted() {
138+
mBootCompleted = true;
139+
}
140+
141141
/** Shows the recents */
142142
public void onShowRecents(boolean triggeredFromAltTab, View statusBarView) {
143143
mStatusBarView = statusBarView;

0 commit comments

Comments
 (0)