Loading api/11.xml +15 −2 Original line number Diff line number Diff line Loading @@ -231405,8 +231405,21 @@ visibility="public" > </method> <method name="getSubtypes" return="java.util.ArrayList<android.view.inputmethod.InputMethodSubtype>" <method name="getSubtypeAt" return="android.view.inputmethod.InputMethodSubtype" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="index" type="int"> </parameter> </method> <method name="getSubtypeCount" return="int" abstract="false" native="false" synchronized="false" api/current.xml +15 −2 Original line number Diff line number Diff line Loading @@ -231426,8 +231426,21 @@ visibility="public" > </method> <method name="getSubtypes" return="java.util.ArrayList<android.view.inputmethod.InputMethodSubtype>" <method name="getSubtypeAt" return="android.view.inputmethod.InputMethodSubtype" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="index" type="int"> </parameter> </method> <method name="getSubtypeCount" return="int" abstract="false" native="false" synchronized="false" core/java/android/view/inputmethod/InputMethodInfo.java +12 −3 Original line number Diff line number Diff line Loading @@ -265,10 +265,19 @@ public final class InputMethodInfo implements Parcelable { } /** * Return the subtypes of Input Method. * Return the count of the subtypes of Input Method. */ public ArrayList<InputMethodSubtype> getSubtypes() { return mSubtypes; public int getSubtypeCount() { return mSubtypes.size(); } /** * Return the Input Method's subtype at the specified index. * * @param index the index of the subtype to return. */ public InputMethodSubtype getSubtypeAt(int index) { return mSubtypes.get(index); } /** Loading packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodButton.java +2 −2 Original line number Diff line number Diff line Loading @@ -124,9 +124,9 @@ public class InputMethodButton extends ImageView { if (subtype != null) { return pm.getDrawable(imi.getPackageName(), subtype.getIconResId(), imi.getServiceInfo().applicationInfo); } else if (imi.getSubtypes().size() > 0) { } else if (imi.getSubtypeCount() > 0) { return pm.getDrawable(imi.getPackageName(), imi.getSubtypes().get(0).getIconResId(), imi.getSubtypeAt(0).getIconResId(), imi.getServiceInfo().applicationInfo); } else { try { Loading packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodsPanel.java +2 −2 Original line number Diff line number Diff line Loading @@ -342,9 +342,9 @@ public class InputMethodsPanel extends LinearLayout implements StatusBarPanel, O if (subtype != null) { return mPackageManager.getDrawable(imi.getPackageName(), subtype.getIconResId(), imi.getServiceInfo().applicationInfo); } else if (imi.getSubtypes().size() > 0) { } else if (imi.getSubtypeCount() > 0) { return mPackageManager.getDrawable(imi.getPackageName(), imi.getSubtypes().get(0).getIconResId(), imi.getSubtypeAt(0).getIconResId(), imi.getServiceInfo().applicationInfo); } else { try { Loading Loading
api/11.xml +15 −2 Original line number Diff line number Diff line Loading @@ -231405,8 +231405,21 @@ visibility="public" > </method> <method name="getSubtypes" return="java.util.ArrayList<android.view.inputmethod.InputMethodSubtype>" <method name="getSubtypeAt" return="android.view.inputmethod.InputMethodSubtype" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="index" type="int"> </parameter> </method> <method name="getSubtypeCount" return="int" abstract="false" native="false" synchronized="false"
api/current.xml +15 −2 Original line number Diff line number Diff line Loading @@ -231426,8 +231426,21 @@ visibility="public" > </method> <method name="getSubtypes" return="java.util.ArrayList<android.view.inputmethod.InputMethodSubtype>" <method name="getSubtypeAt" return="android.view.inputmethod.InputMethodSubtype" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="index" type="int"> </parameter> </method> <method name="getSubtypeCount" return="int" abstract="false" native="false" synchronized="false"
core/java/android/view/inputmethod/InputMethodInfo.java +12 −3 Original line number Diff line number Diff line Loading @@ -265,10 +265,19 @@ public final class InputMethodInfo implements Parcelable { } /** * Return the subtypes of Input Method. * Return the count of the subtypes of Input Method. */ public ArrayList<InputMethodSubtype> getSubtypes() { return mSubtypes; public int getSubtypeCount() { return mSubtypes.size(); } /** * Return the Input Method's subtype at the specified index. * * @param index the index of the subtype to return. */ public InputMethodSubtype getSubtypeAt(int index) { return mSubtypes.get(index); } /** Loading
packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodButton.java +2 −2 Original line number Diff line number Diff line Loading @@ -124,9 +124,9 @@ public class InputMethodButton extends ImageView { if (subtype != null) { return pm.getDrawable(imi.getPackageName(), subtype.getIconResId(), imi.getServiceInfo().applicationInfo); } else if (imi.getSubtypes().size() > 0) { } else if (imi.getSubtypeCount() > 0) { return pm.getDrawable(imi.getPackageName(), imi.getSubtypes().get(0).getIconResId(), imi.getSubtypeAt(0).getIconResId(), imi.getServiceInfo().applicationInfo); } else { try { Loading
packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodsPanel.java +2 −2 Original line number Diff line number Diff line Loading @@ -342,9 +342,9 @@ public class InputMethodsPanel extends LinearLayout implements StatusBarPanel, O if (subtype != null) { return mPackageManager.getDrawable(imi.getPackageName(), subtype.getIconResId(), imi.getServiceInfo().applicationInfo); } else if (imi.getSubtypes().size() > 0) { } else if (imi.getSubtypeCount() > 0) { return mPackageManager.getDrawable(imi.getPackageName(), imi.getSubtypes().get(0).getIconResId(), imi.getSubtypeAt(0).getIconResId(), imi.getServiceInfo().applicationInfo); } else { try { Loading