diff options
| author | Jorim Jaggi <jjaggi@google.com> | 2015-06-02 15:07:33 -0700 |
|---|---|---|
| committer | Jorim Jaggi <jjaggi@google.com> | 2015-06-04 11:21:49 -0700 |
| commit | 900fb48d269e2fbf3baea995c6324e4c08ad7c22 (patch) | |
| tree | ee7f9dc9fa0b73a5a0bd9b34d1df5379a610f435 /packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java | |
| parent | 658807a801cf5c484f4f4ec9dd896fa8d02249ea (diff) | |
| download | frameworks_base-900fb48d269e2fbf3baea995c6324e4c08ad7c22.zip frameworks_base-900fb48d269e2fbf3baea995c6324e4c08ad7c22.tar.gz frameworks_base-900fb48d269e2fbf3baea995c6324e4c08ad7c22.tar.bz2 | |
Make entering recents a lot faster
- Precache the bitmap for the window animation in the preload phase
- Remove some post's so we have a faster path from UP -> startActivity
- Don't dim the headers in the first frame drawn, because layer
creation is slow. Instead, do it in the second frame, when the window
animation is already running.
All these changes combined make going to recents about 40-50ms faster.
Change-Id: I3e4060af1ac57b3f359fe7f86f9e3814c6490323
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java')
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java index fa172a4..f05ac1a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -1030,9 +1030,7 @@ public abstract class BaseStatusBar extends SystemUI implements @Override public void toggleRecentApps() { - int msg = MSG_TOGGLE_RECENTS_APPS; - mHandler.removeMessages(msg); - mHandler.sendEmptyMessage(msg); + toggleRecents(); } @Override |
