diff options
| author | Daniel Sandler <dsandler@android.com> | 2012-05-10 13:15:26 -0400 |
|---|---|---|
| committer | Daniel Sandler <dsandler@android.com> | 2012-05-15 22:54:44 -0400 |
| commit | 4391b0bc6949365e5ed26990a1f206bfbae31015 (patch) | |
| tree | 67dfd564a8beb23179a55752ea7d4668131282ed | |
| parent | 7b8523aaed11a3b5ee286776023233036ac0759d (diff) | |
| download | frameworks_base-4391b0bc6949365e5ed26990a1f206bfbae31015.zip frameworks_base-4391b0bc6949365e5ed26990a1f206bfbae31015.tar.gz frameworks_base-4391b0bc6949365e5ed26990a1f206bfbae31015.tar.bz2 | |
Prevent IME from being closed by the notification panel.
Bug: 6450921
Change-Id: I124c3776728456fdd71e57cfcf898b11a8dfc7ec
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 8 |
1 files changed, 4 insertions, 4 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 287c2922..2ea1827 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -991,13 +991,12 @@ public class PhoneStatusBar extends BaseStatusBar { // Expand the window to encompass the full screen in anticipation of the drag. // This is only possible to do atomically because the status bar is at the top of the screen! WindowManager.LayoutParams lp = (WindowManager.LayoutParams) mStatusBarWindow.getLayoutParams(); - lp.flags &= (~WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE); + lp.flags &= ~WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; + lp.flags |= WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM; lp.height = ViewGroup.LayoutParams.MATCH_PARENT; final WindowManager wm = WindowManagerImpl.getDefault(); wm.updateViewLayout(mStatusBarWindow, lp); - mStatusBarWindow.requestFocus(View.FOCUS_FORWARD); - visibilityChanged(true); } @@ -1084,7 +1083,8 @@ public class PhoneStatusBar extends BaseStatusBar { // Shrink the window to the size of the status bar only WindowManager.LayoutParams lp = (WindowManager.LayoutParams) mStatusBarWindow.getLayoutParams(); lp.height = getStatusBarHeight(); - lp.flags |= (WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE); + lp.flags |= WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; + lp.flags &= ~WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM; final WindowManager wm = WindowManagerImpl.getDefault(); wm.updateViewLayout(mStatusBarWindow, lp); |
