diff options
author | Daniel Sandler <dsandler@android.com> | 2011-11-18 09:30:08 -0800 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2011-11-18 09:30:08 -0800 |
commit | 5207d9c94b31cd2da1c4a52c2ae7f9c1f50ccad1 (patch) | |
tree | 9ae01514dacd04121f86510145e7ad6ae678f34f /policy | |
parent | 2d54536d08a59680078f78bc6301379563df4c85 (diff) | |
download | frameworks_base-5207d9c94b31cd2da1c4a52c2ae7f9c1f50ccad1.zip frameworks_base-5207d9c94b31cd2da1c4a52c2ae7f9c1f50ccad1.tar.gz frameworks_base-5207d9c94b31cd2da1c4a52c2ae7f9c1f50ccad1.tar.bz2 |
Dismiss system windows when screen savers start.
Also add a couple more flags to the intent:
- NO_HISTORY (finish activity on suspend)
- FLAG_FROM_BACKGROUND
Bug: 5578434
Change-Id: I97b965175a27760b819dc29ddb57865c5f4754d6
Diffstat (limited to 'policy')
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index e1676b8..fd9e095 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -3475,12 +3475,17 @@ public class PhoneWindowManager implements WindowManagerPolicy { component = mContext.getResources().getString(R.string.config_defaultDreamComponent); } if (component != null) { + // dismiss the notification shade, recents, etc. + mContext.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)); + ComponentName cn = ComponentName.unflattenFromString(component); Intent intent = new Intent(Intent.ACTION_MAIN) .setComponent(cn) .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS | Intent.FLAG_ACTIVITY_NO_USER_ACTION + | Intent.FLAG_FROM_BACKGROUND + | Intent.FLAG_ACTIVITY_NO_HISTORY ); mContext.startActivity(intent); } else { |