Merge "Fix bug with preloading recent tasks" into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c40771a90d
@@ -1717,15 +1717,17 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
mHomePressed = false;
|
||||
mHomeLongPressed = false;
|
||||
if (!homeWasLongPressed) {
|
||||
try {
|
||||
IStatusBarService statusbar = getStatusBarService();
|
||||
if (statusbar != null) {
|
||||
statusbar.cancelPreloadRecentApps();
|
||||
if (mLongPressOnHomeBehavior == LONG_PRESS_HOME_RECENT_SYSTEM_UI) {
|
||||
try {
|
||||
IStatusBarService statusbar = getStatusBarService();
|
||||
if (statusbar != null) {
|
||||
statusbar.cancelPreloadRecentApps();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Slog.e(TAG, "RemoteException when showing recent apps", e);
|
||||
// re-acquire status bar service next time it is needed.
|
||||
mStatusBarService = null;
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Slog.e(TAG, "RemoteException when showing recent apps", e);
|
||||
// re-acquire status bar service next time it is needed.
|
||||
mStatusBarService = null;
|
||||
}
|
||||
|
||||
mHomePressed = false;
|
||||
|
||||
Reference in New Issue
Block a user