diff options
| author | Yohei Yukawa <yukawa@google.com> | 2018-12-09 18:52:02 -0800 |
|---|---|---|
| committer | Yohei Yukawa <yukawa@google.com> | 2018-12-09 18:52:02 -0800 |
| commit | 0c49908a02ed49a4ccea9f10890a710268d8f7bc (patch) | |
| tree | 31a0ca4add2cbd1a3da3b73f939f71a8ca6e7962 /core/java/android | |
| parent | 70f17e7c1dc1da6ef4a335931d9266f69d698d95 (diff) | |
Stop supporting null IME token in IMM#switchToLastInputMethod()
Hopefully no one has relied on this undocumented behavior that when
the caller has WRITE_SECURE_SETTINGS then null IME token is allowed in
IMM#switchToLastInputMethod().
Bug: 114488811
Test: CtsInputMethodServiceHostTestCases
Change-Id: Icb02c9bb52b11cff39b222198f4b67984676b9a6
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/inputmethod/InputMethodManager.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java index 2794e0890b15..1b2d8b1d7791 100644 --- a/core/java/android/view/inputmethod/InputMethodManager.java +++ b/core/java/android/view/inputmethod/InputMethodManager.java @@ -2520,16 +2520,6 @@ public final class InputMethodManager { */ @Deprecated public boolean switchToLastInputMethod(IBinder imeToken) { - if (imeToken == null) { - // Note: null token is allowed for callers that have WRITE_SECURE_SETTINGS permission. - // Thus we cannot always rely on InputMethodPrivilegedOperationsRegistry unfortunately. - // TODO(Bug 114488811): Consider deprecating null token rule. - try { - return mService.switchToPreviousInputMethod(imeToken); - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } - } return InputMethodPrivilegedOperationsRegistry.get(imeToken).switchToPreviousInputMethod(); } |
