Merge "Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately"
This commit is contained in:
committed by
Android (Google) Code Review
commit
85b9edf2da
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user