summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2011-01-26 11:50:38 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-01-26 11:50:38 -0800
commitb648c60854e74ffda4caefa26b9e1d3f6cdbf13f (patch)
tree7ea413c1a53fa8ae9a71d1e4a3c90c4cd39d28ee /policy
parentc3975664926268f5245bccf8853ec54ed080ae9e (diff)
parenta4a5ec5e748f99c40301c9c422b3d36cb44c6081 (diff)
downloadframeworks_base-b648c60854e74ffda4caefa26b9e1d3f6cdbf13f.zip
frameworks_base-b648c60854e74ffda4caefa26b9e1d3f6cdbf13f.tar.gz
frameworks_base-b648c60854e74ffda4caefa26b9e1d3f6cdbf13f.tar.bz2
am a4a5ec5e: am 1aadb210: Merge changes I48392c75,Id09437a4,I4a0aa878 into honeycomb
* commit 'a4a5ec5e748f99c40301c9c422b3d36cb44c6081': Expose the window flags for lights out mode. Make TabletStatusBar call into StatusBarManagerService when it goes out of lights out mode on its own. Make FLAG_FULLSCREEN not go into lights out mode anymore.
Diffstat (limited to 'policy')
-rwxr-xr-xpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
index 9b5c42e..fd84a2a 100755
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -1892,14 +1892,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
+ (topNeedsMenu ? "needs" : "does not need")
+ " the MENU key");
- final boolean changedFullscreen = (mTopIsFullscreen != topIsFullscreen);
+ mTopIsFullscreen = topIsFullscreen;
final boolean changedMenu = (topNeedsMenu != mShowMenuKey);
- if (changedFullscreen || changedMenu) {
- final boolean topIsFullscreenF = topIsFullscreen;
+ if (changedMenu) {
final boolean topNeedsMenuF = topNeedsMenu;
- mTopIsFullscreen = topIsFullscreen;
mShowMenuKey = topNeedsMenu;
mHandler.post(new Runnable() {
@@ -1918,9 +1916,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
if (changedMenu) {
sbs.setMenuKeyVisible(topNeedsMenuF);
}
- if (changedFullscreen) {
- sbs.setActiveWindowIsFullscreen(topIsFullscreenF);
- }
} catch (RemoteException e) {
// This should be impossible because we're in the same process.
mStatusBarService = null;
@@ -2860,7 +2855,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
// If there is no window focused, there will be nobody to handle the events
// anyway, so just hang on in whatever state we're in until things settle down.
if (mFocusedWindow != null) {
- final int visibility = mFocusedWindow.getAttrs().systemUiVisibility;
+ final WindowManager.LayoutParams params = mFocusedWindow.getAttrs();
+ final int visibility = params.systemUiVisibility | params.subtreeSystemUiVisibility;
mHandler.post(new Runnable() {
public void run() {
if (mStatusBarService == null) {