Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +11 −0 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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(); } } }; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +11 −0 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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(); } } }; Loading