Loading core/java/android/inputmethodservice/InputMethodService.java +26 −7 Original line number Diff line number Diff line Loading @@ -382,8 +382,9 @@ public class InputMethodService extends AbstractInputMethodService { */ public class InputMethodImpl extends AbstractInputMethodImpl { /** * Take care of attaching the given window token provided by the system. * {@inheritDoc} */ @Override public void attachToken(IBinder token) { if (mToken == null) { mToken = token; Loading @@ -392,10 +393,11 @@ public class InputMethodService extends AbstractInputMethodService { } /** * Handle a new input binding, calling * {@link InputMethodService#onBindInput InputMethodService.onBindInput()} * when done. * {@inheritDoc} * * <p>Calls {@link InputMethodService#onBindInput()} when done.</p> */ @Override public void bindInput(InputBinding binding) { mInputBinding = binding; mInputConnection = binding.getConnection(); Loading @@ -409,8 +411,11 @@ public class InputMethodService extends AbstractInputMethodService { } /** * Clear the current input binding. * {@inheritDoc} * * <p>Calls {@link InputMethodService#onUnbindInput()} when done.</p> */ @Override public void unbindInput() { if (DEBUG) Log.v(TAG, "unbindInput(): binding=" + mInputBinding + " ic=" + mInputConnection); Loading @@ -419,11 +424,19 @@ public class InputMethodService extends AbstractInputMethodService { mInputConnection = null; } /** * {@inheritDoc} */ @Override public void startInput(InputConnection ic, EditorInfo attribute) { if (DEBUG) Log.v(TAG, "startInput(): editor=" + attribute); doStartInput(ic, attribute, false); } /** * {@inheritDoc} */ @Override public void restartInput(InputConnection ic, EditorInfo attribute) { if (DEBUG) Log.v(TAG, "restartInput(): editor=" + attribute); doStartInput(ic, attribute, true); Loading @@ -447,8 +460,9 @@ public class InputMethodService extends AbstractInputMethodService { } /** * Handle a request by the system to hide the soft input area. * {@inheritDoc} */ @Override public void hideSoftInput(int flags, ResultReceiver resultReceiver) { if (DEBUG) Log.v(TAG, "hideSoftInput()"); boolean wasVis = isInputViewShown(); Loading @@ -465,8 +479,9 @@ public class InputMethodService extends AbstractInputMethodService { } /** * Handle a request by the system to show the soft input area. * {@inheritDoc} */ @Override public void showSoftInput(int flags, ResultReceiver resultReceiver) { if (DEBUG) Log.v(TAG, "showSoftInput()"); boolean wasVis = isInputViewShown(); Loading Loading @@ -495,6 +510,10 @@ public class InputMethodService extends AbstractInputMethodService { } } /** * {@inheritDoc} */ @Override public void changeInputMethodSubtype(InputMethodSubtype subtype) { onCurrentInputMethodSubtypeChanged(subtype); } Loading Loading
core/java/android/inputmethodservice/InputMethodService.java +26 −7 Original line number Diff line number Diff line Loading @@ -382,8 +382,9 @@ public class InputMethodService extends AbstractInputMethodService { */ public class InputMethodImpl extends AbstractInputMethodImpl { /** * Take care of attaching the given window token provided by the system. * {@inheritDoc} */ @Override public void attachToken(IBinder token) { if (mToken == null) { mToken = token; Loading @@ -392,10 +393,11 @@ public class InputMethodService extends AbstractInputMethodService { } /** * Handle a new input binding, calling * {@link InputMethodService#onBindInput InputMethodService.onBindInput()} * when done. * {@inheritDoc} * * <p>Calls {@link InputMethodService#onBindInput()} when done.</p> */ @Override public void bindInput(InputBinding binding) { mInputBinding = binding; mInputConnection = binding.getConnection(); Loading @@ -409,8 +411,11 @@ public class InputMethodService extends AbstractInputMethodService { } /** * Clear the current input binding. * {@inheritDoc} * * <p>Calls {@link InputMethodService#onUnbindInput()} when done.</p> */ @Override public void unbindInput() { if (DEBUG) Log.v(TAG, "unbindInput(): binding=" + mInputBinding + " ic=" + mInputConnection); Loading @@ -419,11 +424,19 @@ public class InputMethodService extends AbstractInputMethodService { mInputConnection = null; } /** * {@inheritDoc} */ @Override public void startInput(InputConnection ic, EditorInfo attribute) { if (DEBUG) Log.v(TAG, "startInput(): editor=" + attribute); doStartInput(ic, attribute, false); } /** * {@inheritDoc} */ @Override public void restartInput(InputConnection ic, EditorInfo attribute) { if (DEBUG) Log.v(TAG, "restartInput(): editor=" + attribute); doStartInput(ic, attribute, true); Loading @@ -447,8 +460,9 @@ public class InputMethodService extends AbstractInputMethodService { } /** * Handle a request by the system to hide the soft input area. * {@inheritDoc} */ @Override public void hideSoftInput(int flags, ResultReceiver resultReceiver) { if (DEBUG) Log.v(TAG, "hideSoftInput()"); boolean wasVis = isInputViewShown(); Loading @@ -465,8 +479,9 @@ public class InputMethodService extends AbstractInputMethodService { } /** * Handle a request by the system to show the soft input area. * {@inheritDoc} */ @Override public void showSoftInput(int flags, ResultReceiver resultReceiver) { if (DEBUG) Log.v(TAG, "showSoftInput()"); boolean wasVis = isInputViewShown(); Loading Loading @@ -495,6 +510,10 @@ public class InputMethodService extends AbstractInputMethodService { } } /** * {@inheritDoc} */ @Override public void changeInputMethodSubtype(InputMethodSubtype subtype) { onCurrentInputMethodSubtypeChanged(subtype); } Loading