Merge "Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately"

This commit is contained in:
Dianne Hackborn
2011-10-06 15:15:32 -07:00
committed by Android (Google) Code Review
15 changed files with 161 additions and 50 deletions

View File

@@ -3497,8 +3497,7 @@ 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 WindowManager.LayoutParams params = mFocusedWindow.getAttrs();
final int visibility = params.systemUiVisibility | params.subtreeSystemUiVisibility;
final int visibility = mFocusedWindow.getSystemUiVisibility();
mHandler.post(new Runnable() {
public void run() {
if (mStatusBarService == null) {