am 6827ece2: am 5da799e0: Bug 2248173 - Tell listeners to ACTION_CLOSE_SYSTEM_DIALOGS that we\'re doing so because of the home key.
Merge commit '6827ece2767dc17995f43cb7d70338dcbbbb05f7' into eclair-mr2-plus-aosp * commit '6827ece2767dc17995f43cb7d70338dcbbbb05f7': Bug 2248173 - Tell listeners to ACTION_CLOSE_SYSTEM_DIALOGS that we're doing so because of the home
This commit is contained in:
@@ -154,6 +154,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
static public final String SYSTEM_DIALOG_REASON_KEY = "reason";
|
||||
static public final String SYSTEM_DIALOG_REASON_GLOBAL_ACTIONS = "globalactions";
|
||||
static public final String SYSTEM_DIALOG_REASON_RECENT_APPS = "recentapps";
|
||||
static public final String SYSTEM_DIALOG_REASON_HOME_KEY = "homekey";
|
||||
|
||||
final Object mLock = new Object();
|
||||
|
||||
@@ -1120,7 +1121,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
ActivityManagerNative.getDefault().stopAppSwitches();
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
sendCloseSystemWindows();
|
||||
sendCloseSystemWindows(SYSTEM_DIALOG_REASON_HOME_KEY);
|
||||
startDockOrHome();
|
||||
}
|
||||
}
|
||||
@@ -1131,7 +1132,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
ActivityManagerNative.getDefault().stopAppSwitches();
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
sendCloseSystemWindows();
|
||||
sendCloseSystemWindows(SYSTEM_DIALOG_REASON_HOME_KEY);
|
||||
startDockOrHome();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user