Loading core/java/android/inputmethodservice/InputMethodService.java +11 −3 Original line number Diff line number Diff line Loading @@ -393,6 +393,10 @@ public class InputMethodService extends AbstractInputMethodService { if (onShowInputRequested(flags, false)) { showWindow(true); } // If user uses hard keyboard, IME button should always be shown. if (!onEvaluateInputViewShown()) { mImm.setIMEButtonVisible(mToken, true); } if (resultReceiver != null) { resultReceiver.send(wasVis != isInputViewShown() ? InputMethodManager.RESULT_SHOWN Loading Loading @@ -699,6 +703,10 @@ public class InputMethodService extends AbstractInputMethodService { // Otherwise hide the window. hideWindow(); } // If user uses hard keyboard, IME button should always be shown. if (!onEvaluateInputViewShown()) { mImm.setIMEButtonVisible(mToken, true); } } } Loading Loading @@ -1386,10 +1394,10 @@ public class InputMethodService extends AbstractInputMethodService { } mInputViewStarted = false; mCandidatesViewStarted = false; mImm.setIMEButtonVisible(mToken, false); if (mWindowVisible) { mWindow.hide(); mWindowVisible = false; mImm.setIMEButtonVisible(mToken, false); onWindowHidden(); mWindowWasVisible = false; } Loading services/java/com/android/server/InputMethodManagerService.java +2 −0 Original line number Diff line number Diff line Loading @@ -1148,9 +1148,11 @@ public class InputMethodManagerService extends IInputMethodManager.Stub if (!mIWindowManager.inputMethodClientHasFocus(client)) { if (DEBUG) Slog.w(TAG, "Ignoring hideSoftInput of uid " + uid + ": " + client); mStatusBar.setIMEButtonVisible(mCurToken, false); return false; } } catch (RemoteException e) { mStatusBar.setIMEButtonVisible(mCurToken, false); return false; } } Loading Loading
core/java/android/inputmethodservice/InputMethodService.java +11 −3 Original line number Diff line number Diff line Loading @@ -393,6 +393,10 @@ public class InputMethodService extends AbstractInputMethodService { if (onShowInputRequested(flags, false)) { showWindow(true); } // If user uses hard keyboard, IME button should always be shown. if (!onEvaluateInputViewShown()) { mImm.setIMEButtonVisible(mToken, true); } if (resultReceiver != null) { resultReceiver.send(wasVis != isInputViewShown() ? InputMethodManager.RESULT_SHOWN Loading Loading @@ -699,6 +703,10 @@ public class InputMethodService extends AbstractInputMethodService { // Otherwise hide the window. hideWindow(); } // If user uses hard keyboard, IME button should always be shown. if (!onEvaluateInputViewShown()) { mImm.setIMEButtonVisible(mToken, true); } } } Loading Loading @@ -1386,10 +1394,10 @@ public class InputMethodService extends AbstractInputMethodService { } mInputViewStarted = false; mCandidatesViewStarted = false; mImm.setIMEButtonVisible(mToken, false); if (mWindowVisible) { mWindow.hide(); mWindowVisible = false; mImm.setIMEButtonVisible(mToken, false); onWindowHidden(); mWindowWasVisible = false; } Loading
services/java/com/android/server/InputMethodManagerService.java +2 −0 Original line number Diff line number Diff line Loading @@ -1148,9 +1148,11 @@ public class InputMethodManagerService extends IInputMethodManager.Stub if (!mIWindowManager.inputMethodClientHasFocus(client)) { if (DEBUG) Slog.w(TAG, "Ignoring hideSoftInput of uid " + uid + ": " + client); mStatusBar.setIMEButtonVisible(mCurToken, false); return false; } } catch (RemoteException e) { mStatusBar.setIMEButtonVisible(mCurToken, false); return false; } } Loading