summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'packages/SystemUI/src/com')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
index da47219..d551ef5 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -437,6 +437,7 @@ public class PhoneStatusBar extends StatusBar {
IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED);
filter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
+ filter.addAction(Intent.ACTION_SCREEN_ON);
filter.addAction(Intent.ACTION_SCREEN_OFF);
context.registerReceiver(mBroadcastReceiver, filter);
@@ -2314,10 +2315,20 @@ public class PhoneStatusBar extends StatusBar {
}
}
animateCollapse(excludeRecents);
+ if(Intent.ACTION_SCREEN_OFF.equals(action)) {
+ // Explicitly hide the expanded dialog. Otherwise it
+ // causes continuous buffer updates to SurfaceTexture
+ // even when SCREEN is turned off (while In-Call).
+ // This keeps the power consumption to a minimum
+ // in such a scenario.
+ mExpandedDialog.hide();
+ }
}
else if (Intent.ACTION_CONFIGURATION_CHANGED.equals(action)) {
repositionNavigationBar();
updateResources();
+ } else if (Intent.ACTION_SCREEN_ON.equals(action)) {
+ mExpandedDialog.show();
}
}
};