Loading core/java/android/inputmethodservice/InputMethodService.java +5 −3 Original line number Diff line number Diff line Loading @@ -450,11 +450,13 @@ public class InputMethodService extends AbstractInputMethodService { @MainThread @Override public void attachToken(IBinder token) { if (mToken == null) { if (mToken != null) { throw new IllegalStateException( "attachToken() must be called at most once. token=" + token); } mToken = token; mWindow.setToken(token); } } /** * {@inheritDoc} Loading core/java/android/view/inputmethod/InputMethod.java +4 −4 Original line number Diff line number Diff line Loading @@ -87,9 +87,9 @@ public interface InputMethod { * This token <strong>must not</strong> be passed to applications, since * it grants special priviledges that should not be given to applications. * * <p>Note: to protect yourself from malicious clients, you should only * accept the first token given to you. Any after that may come from the * client. * <p>The system guarantees that this method is called back between * {@link InputMethodService#onCreate()} and {@link InputMethodService#onDestroy()} * at most once. */ @MainThread public void attachToken(IBinder token); Loading Loading
core/java/android/inputmethodservice/InputMethodService.java +5 −3 Original line number Diff line number Diff line Loading @@ -450,11 +450,13 @@ public class InputMethodService extends AbstractInputMethodService { @MainThread @Override public void attachToken(IBinder token) { if (mToken == null) { if (mToken != null) { throw new IllegalStateException( "attachToken() must be called at most once. token=" + token); } mToken = token; mWindow.setToken(token); } } /** * {@inheritDoc} Loading
core/java/android/view/inputmethod/InputMethod.java +4 −4 Original line number Diff line number Diff line Loading @@ -87,9 +87,9 @@ public interface InputMethod { * This token <strong>must not</strong> be passed to applications, since * it grants special priviledges that should not be given to applications. * * <p>Note: to protect yourself from malicious clients, you should only * accept the first token given to you. Any after that may come from the * client. * <p>The system guarantees that this method is called back between * {@link InputMethodService#onCreate()} and {@link InputMethodService#onDestroy()} * at most once. */ @MainThread public void attachToken(IBinder token); Loading