OSDN Git Service

Follow method renamings
authorYohei Yukawa <yukawa@google.com>
Mon, 15 Jan 2018 00:15:31 +0000 (16:15 -0800)
committerYohei Yukawa <yukawa@google.com>
Mon, 15 Jan 2018 00:15:31 +0000 (16:15 -0800)
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

core/java/android/inputmethodservice/InputMethodService.java

index 8937490..8f751ef 100644 (file)
@@ -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(