diff options
| author | Ahaan Ugale <augale@google.com> | 2020-07-08 23:20:47 +0000 |
|---|---|---|
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-07-08 23:20:47 +0000 |
| commit | 09f8901d9bfee1de2569376b19730bd5953de37e (patch) | |
| tree | 12be286da0e47ddebc274250585c5c562d15464f /core/java | |
| parent | 15eb027a6a9306b71efc9fbc1edba872af9f8a9f (diff) | |
| parent | 2b4e7a9d557d8c732ff3ed09c7cae7e226d5eb5c (diff) | |
Merge "Change to drop down when the inline suggestions don't be shown in IME." into rvc-dev am: 5fa3f11717 am: eea21c14bd am: 2b4e7a9d55
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12066145
Change-Id: If7b431d3fd4ab74a1b41b1f36edc8c3d143465d5
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/inputmethodservice/InlineSuggestionSession.java | 5 | ||||
| -rw-r--r-- | core/java/com/android/internal/view/IInlineSuggestionsRequestCallback.aidl | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/inputmethodservice/InlineSuggestionSession.java b/core/java/android/inputmethodservice/InlineSuggestionSession.java index 509cbe09df69..90d0ff0a5026 100644 --- a/core/java/android/inputmethodservice/InlineSuggestionSession.java +++ b/core/java/android/inputmethodservice/InlineSuggestionSession.java @@ -149,6 +149,11 @@ class InlineSuggestionSession { */ @MainThread void invalidate() { + try { + mCallback.onInlineSuggestionsSessionInvalidated(); + } catch (RemoteException e) { + Log.w(TAG, "onInlineSuggestionsSessionInvalidated() remote exception:" + e); + } if (mResponseCallback != null) { consumeInlineSuggestionsResponse(EMPTY_RESPONSE); mResponseCallback.invalidate(); diff --git a/core/java/com/android/internal/view/IInlineSuggestionsRequestCallback.aidl b/core/java/com/android/internal/view/IInlineSuggestionsRequestCallback.aidl index cf1220c08467..03948a92bcab 100644 --- a/core/java/com/android/internal/view/IInlineSuggestionsRequestCallback.aidl +++ b/core/java/com/android/internal/view/IInlineSuggestionsRequestCallback.aidl @@ -58,4 +58,7 @@ oneway interface IInlineSuggestionsRequestCallback { // #onFinishInput()} is called on the field specified by the earlier // {@link #onInputMethodStartInput(AutofillId)}. void onInputMethodFinishInput(); + + // Indicates that the current IME changes inline suggestion session. + void onInlineSuggestionsSessionInvalidated(); } |
