Loading services/java/com/android/server/InputMethodManagerService.java +4 −0 Original line number Diff line number Diff line Loading @@ -1142,6 +1142,10 @@ public class InputMethodManagerService extends IInputMethodManager.Stub if (mCurToken != null) { try { if (DEBUG) Slog.v(TAG, "Removing window token: " + mCurToken); if ((mImeWindowVis & InputMethodService.IME_ACTIVE) != 0) { // The current IME is shown. Hence an IME switch (transition) is happening. mWindowManagerService.saveLastInputMethodWindowForTransition(); } mIWindowManager.removeWindowToken(mCurToken); } catch (RemoteException e) { } Loading services/java/com/android/server/wm/WindowManagerService.java +9 −3 Original line number Diff line number Diff line Loading @@ -3430,9 +3430,6 @@ public class WindowManagerService extends IWindowManager.Stub synchronized(mWindowMap) { WindowToken wtoken = mTokenMap.remove(token); if (wtoken != null) { if (wtoken.windowType == TYPE_INPUT_METHOD && mInputMethodWindow != null) { mPolicy.setLastInputMethodWindowLw(mInputMethodWindow, mInputMethodTarget); } boolean delayed = false; if (!wtoken.hidden) { wtoken.hidden = true; Loading Loading @@ -9269,6 +9266,15 @@ public class WindowManagerService extends IWindowManager.Stub } } // It is assumed that this method is called only by InputMethodManagerService. public void saveLastInputMethodWindowForTransition() { synchronized (mWindowMap) { if (mInputMethodWindow != null) { mPolicy.setLastInputMethodWindowLw(mInputMethodWindow, mInputMethodTarget); } } } @Override public boolean hasNavigationBar() { return mPolicy.hasNavigationBar(); Loading Loading
services/java/com/android/server/InputMethodManagerService.java +4 −0 Original line number Diff line number Diff line Loading @@ -1142,6 +1142,10 @@ public class InputMethodManagerService extends IInputMethodManager.Stub if (mCurToken != null) { try { if (DEBUG) Slog.v(TAG, "Removing window token: " + mCurToken); if ((mImeWindowVis & InputMethodService.IME_ACTIVE) != 0) { // The current IME is shown. Hence an IME switch (transition) is happening. mWindowManagerService.saveLastInputMethodWindowForTransition(); } mIWindowManager.removeWindowToken(mCurToken); } catch (RemoteException e) { } Loading
services/java/com/android/server/wm/WindowManagerService.java +9 −3 Original line number Diff line number Diff line Loading @@ -3430,9 +3430,6 @@ public class WindowManagerService extends IWindowManager.Stub synchronized(mWindowMap) { WindowToken wtoken = mTokenMap.remove(token); if (wtoken != null) { if (wtoken.windowType == TYPE_INPUT_METHOD && mInputMethodWindow != null) { mPolicy.setLastInputMethodWindowLw(mInputMethodWindow, mInputMethodTarget); } boolean delayed = false; if (!wtoken.hidden) { wtoken.hidden = true; Loading Loading @@ -9269,6 +9266,15 @@ public class WindowManagerService extends IWindowManager.Stub } } // It is assumed that this method is called only by InputMethodManagerService. public void saveLastInputMethodWindowForTransition() { synchronized (mWindowMap) { if (mInputMethodWindow != null) { mPolicy.setLastInputMethodWindowLw(mInputMethodWindow, mInputMethodTarget); } } } @Override public boolean hasNavigationBar() { return mPolicy.hasNavigationBar(); Loading