summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2009-09-08 16:24:36 -0400
committerJoe Onorato <joeo@android.com>2009-09-08 16:24:36 -0400
commitf9e0e6bd5e070d4c213e0237fa2fb8d4bb558bcb (patch)
tree4cc1de3d637b0a74ed225452bbd5257bcebb8813 /services
parent377c5c15f8fea14b575b6b0f14ac7fd3a4d44b3a (diff)
downloadframeworks_base-f9e0e6bd5e070d4c213e0237fa2fb8d4bb558bcb.zip
frameworks_base-f9e0e6bd5e070d4c213e0237fa2fb8d4bb558bcb.tar.gz
frameworks_base-f9e0e6bd5e070d4c213e0237fa2fb8d4bb558bcb.tar.bz2
Fix b/2105945 - Windowshade not closed when device locked.
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/status/StatusBarService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/status/StatusBarService.java b/services/java/com/android/server/status/StatusBarService.java
index b44168a..d680b8a 100644
--- a/services/java/com/android/server/status/StatusBarService.java
+++ b/services/java/com/android/server/status/StatusBarService.java
@@ -322,6 +322,7 @@ public class StatusBarService extends IStatusBar.Stub
IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED);
filter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
+ filter.addAction(Intent.ACTION_SCREEN_OFF);
filter.addAction(Telephony.Intents.SPN_STRINGS_UPDATED_ACTION);
context.registerReceiver(mBroadcastReceiver, filter);
}
@@ -1672,7 +1673,8 @@ public class StatusBarService extends IStatusBar.Stub
private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() {
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
- if (Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(action)) {
+ if (Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(action)
+ || Intent.ACTION_SCREEN_OFF.equals(action)) {
deactivate();
}
else if (Telephony.Intents.SPN_STRINGS_UPDATED_ACTION.equals(action)) {