summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/PowerManagerService.java
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2012-06-14 18:30:51 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-06-14 18:30:51 -0700
commit88c06995395d20aea8e0c2dda6118bd938423cfa (patch)
tree68a0c87b92238fa118620eb6b9536620e450f428 /services/java/com/android/server/PowerManagerService.java
parent9bec724d9049d9106ea68af5668a4081cb5f4d1b (diff)
parent5eed873f1076b685d3a8538894a49f29f85d1189 (diff)
am 5eed873f: am 7661bc6c: Merge "Run the screen on/off broadcasts at foreground priority" into jb-dev
* commit '5eed873f1076b685d3a8538894a49f29f85d1189': Run the screen on/off broadcasts at foreground priority
Diffstat (limited to 'services/java/com/android/server/PowerManagerService.java')
-rw-r--r--services/java/com/android/server/PowerManagerService.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/java/com/android/server/PowerManagerService.java b/services/java/com/android/server/PowerManagerService.java
index 2318049965b6..2e3121dca005 100644
--- a/services/java/com/android/server/PowerManagerService.java
+++ b/services/java/com/android/server/PowerManagerService.java
@@ -618,9 +618,11 @@ public class PowerManagerService extends IPowerManager.Stub
PowerManager.PARTIAL_WAKE_LOCK, "Proximity Partial", false);
mScreenOnIntent = new Intent(Intent.ACTION_SCREEN_ON);
- mScreenOnIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
+ mScreenOnIntent.addFlags(
+ Intent.FLAG_RECEIVER_REGISTERED_ONLY | Intent.FLAG_RECEIVER_FOREGROUND);
mScreenOffIntent = new Intent(Intent.ACTION_SCREEN_OFF);
- mScreenOffIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
+ mScreenOffIntent.addFlags(
+ Intent.FLAG_RECEIVER_REGISTERED_ONLY | Intent.FLAG_RECEIVER_FOREGROUND);
Resources resources = mContext.getResources();