Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b63434b authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

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
      d8d03a8e

Bug: 70282603
Test: atest CtsInputMethodTestCases
Change-Id: I709ca997523ac9a9cd2d236f3158bbb18cf2edc3
parent 4d5420f0
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -1464,12 +1464,12 @@ public class InputMethodService extends AbstractInputMethodService {

    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);
    }

    /**
@@ -1480,7 +1480,7 @@ 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) {