diff options
| author | Yohei Yukawa <yukawa@google.com> | 2018-01-14 16:15:31 -0800 |
|---|---|---|
| committer | Yohei Yukawa <yukawa@google.com> | 2018-01-14 16:15:31 -0800 |
| commit | 2b63434b9309a6ca674182b95d50a0f9977b2651 (patch) | |
| tree | e49c6b6059149d6fba80e701607f0f92b4162179 /core/java/android/inputmethodservice/InputMethodService.java | |
| parent | 4d5420f06613901aafb2cc35f317fecda43a1964 (diff) | |
Follow method renamings
This is a follow up CL to a recent CL [1], which deprecated several
APIs InputMethodManager class but forgot to update some of existing
call sites in InputMethodService to use new method names.
This CL only addresses deprecated API usage warnings. There should be
no behavior change.
[1]: I3163f3cbe557c85103ca287bee0874a3b4194032
d8d03a8e1b5b7f4b05d7f99a19d356ffd95edb58
Bug: 70282603
Test: atest CtsInputMethodTestCases
Change-Id: I709ca997523ac9a9cd2d236f3158bbb18cf2edc3
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
| -rw-r--r-- | core/java/android/inputmethodservice/InputMethodService.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index 8937490091d0..8f751ef357f0 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -1461,17 +1461,17 @@ public class InputMethodService extends AbstractInputMethodService { public int getCandidatesHiddenVisibility() { return isExtractViewShown() ? View.GONE : View.INVISIBLE; } - + public void showStatusIcon(@DrawableRes int iconResId) { mStatusIcon = iconResId; - mImm.showStatusIcon(mToken, getPackageName(), iconResId); + mImm.showStatusIconInternal(mToken, getPackageName(), iconResId); } - + public void hideStatusIcon() { mStatusIcon = 0; - mImm.hideStatusIcon(mToken); + mImm.hideStatusIconInternal(mToken); } - + /** * Force switch to a new input method, as identified by <var>id</var>. This * input method will be destroyed, and the requested one started on the @@ -1480,9 +1480,9 @@ public class InputMethodService extends AbstractInputMethodService { * @param id Unique identifier of the new input method ot start. */ public void switchInputMethod(String id) { - mImm.setInputMethod(mToken, id); + mImm.setInputMethodInternal(mToken, id); } - + public void setExtractView(View view) { mExtractFrame.removeAllViews(); mExtractFrame.addView(view, new FrameLayout.LayoutParams( |
