diff options
author | 2013-09-16 06:23:37 -0700 | |
---|---|---|
committer | 2013-09-16 06:23:37 -0700 | |
commit | 19bea5efdfa80e97f718d5a6043c69bb4a9a10c7 (patch) | |
tree | 08121cb09cc4161d3d9338ecef72eacf6fc1c8e8 | |
parent | a25f350add985422e04c38e74d00ff91f5f555de (diff) | |
parent | a751d97e8611d16a2929c538f634a4b4c7b2938a (diff) |
am a751d97e: Merge "Fix layout glitch specific to quick-settings -> settings." into klp-dev
* commit 'a751d97e8611d16a2929c538f634a4b4c7b2938a':
Fix layout glitch specific to quick-settings -> settings.
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 11 |
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 a3e6e3830ee3..d15626b59c32 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -1378,6 +1378,14 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode { setInteracting(StatusBarManager.WINDOW_STATUS_BAR, true); } + private void releaseFocus() { + WindowManager.LayoutParams lp = + (WindowManager.LayoutParams) mStatusBarWindow.getLayoutParams(); + lp.flags |= WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; + lp.flags &= ~WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM; + mWindowManager.updateViewLayout(mStatusBarWindow, lp); + } + public void animateCollapsePanels() { animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE); } @@ -1389,6 +1397,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode { + " flags=" + flags); } + // release focus immediately to kick off focus change transition + releaseFocus(); + if ((flags & CommandQueue.FLAG_EXCLUDE_RECENTS_PANEL) == 0) { mHandler.removeMessages(MSG_CLOSE_RECENTS_PANEL); mHandler.sendEmptyMessage(MSG_CLOSE_RECENTS_PANEL); |