diff options
| author | Jeff DeCew <jeffdq@google.com> | 2020-12-04 01:02:15 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-12-04 01:02:15 +0000 |
| commit | 13fa153e259029611ba1801f34e54a6d75d6c59a (patch) | |
| tree | dc217cf3022580fb8ecca7a8f8d51d53eca3788d /core/java/android/inputmethodservice/InputMethodService.java | |
| parent | 34bb7d05538883938c5642177d63a25349f1a751 (diff) | |
| parent | 3d62f739a869c97a265506ac1e1ab58f93fa3b34 (diff) | |
Merge "Revert "Let IME#onFinishInput called without dup onStartInput wh...""
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
| -rw-r--r-- | core/java/android/inputmethodservice/InputMethodService.java | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index 6831eca32f72..14bc1ddad5f0 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -62,12 +62,9 @@ import android.annotation.IntDef; import android.annotation.MainThread; import android.annotation.NonNull; import android.annotation.Nullable; -import android.annotation.TestApi; import android.annotation.UiContext; import android.app.ActivityManager; import android.app.Dialog; -import android.compat.annotation.ChangeId; -import android.compat.annotation.EnabledSince; import android.compat.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.pm.PackageManager; @@ -415,29 +412,7 @@ public class InputMethodService extends AbstractInputMethodService { @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023) int mTheme = 0; - - /** - * Finish the {@link InputConnection} when the device becomes - * {@link android.os.PowerManager#isInteractive non-interactive}. - * - * <p> - * If enabled by the current {@link InputMethodService input method}, the current input - * connection will be {@link InputMethodService#onFinishInput finished} whenever the devices - * becomes non-interactive. - * - * <p> - * If not enabled, the current input connection will instead be silently deactivated when the - * devices becomes non-interactive, and an {@link InputMethodService#onFinishInput - * onFinishInput()} {@link InputMethodService#onStartInput onStartInput()} pair is dispatched - * when the device becomes interactive again. - * - * @hide - */ - @TestApi - @ChangeId - @EnabledSince(targetSdkVersion = Build.VERSION_CODES.S) - public static final long FINISH_INPUT_NO_FALLBACK_CONNECTION = 156215187L; // This is a bug id. - + LayoutInflater mInflater; TypedArray mThemeAttrs; @UnsupportedAppUsage @@ -2377,7 +2352,7 @@ public class InputMethodService extends AbstractInputMethodService { } void doStartInput(InputConnection ic, EditorInfo attribute, boolean restarting) { - if (!restarting && mInputStarted) { + if (!restarting) { doFinishInput(); } ImeTracing.getInstance().triggerServiceDump("InputMethodService#doStartInput", this, |
