summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/recents
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2014-09-29 13:42:49 -0700
committerWinson Chung <winsonc@google.com>2014-09-29 13:42:49 -0700
commit8bf05afc26c4b727af25a669914c057877355891 (patch)
treea01b6a18a34726a2c2944fa48cb383744be8607b /packages/SystemUI/src/com/android/systemui/recents
parent51a400eb440c89fb06a47371bb7b026f00edb09c (diff)
downloadframeworks_base-8bf05afc26c4b727af25a669914c057877355891.zip
frameworks_base-8bf05afc26c4b727af25a669914c057877355891.tar.gz
frameworks_base-8bf05afc26c4b727af25a669914c057877355891.tar.bz2
Fixing crash in Recents due to late onBootCompleted call (Bug 17572254)
Change-Id: I016dd8b7be9efa786291051152b1b56aac708e33
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recents')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java b/packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java
index 5caf1ac..8416ad7 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java
@@ -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;