Merge "Make InputMethodInfo#showInInputMethodPicker public." into sc-dev
This commit is contained in:
@@ -51985,6 +51985,7 @@ package android.view.inputmethod {
|
|||||||
method public int getSubtypeCount();
|
method public int getSubtypeCount();
|
||||||
method public android.graphics.drawable.Drawable loadIcon(android.content.pm.PackageManager);
|
method public android.graphics.drawable.Drawable loadIcon(android.content.pm.PackageManager);
|
||||||
method public CharSequence loadLabel(android.content.pm.PackageManager);
|
method public CharSequence loadLabel(android.content.pm.PackageManager);
|
||||||
|
method public boolean shouldShowInInputMethodPicker();
|
||||||
method public boolean suppressesSpellChecker();
|
method public boolean suppressesSpellChecker();
|
||||||
method public void writeToParcel(android.os.Parcel, int);
|
method public void writeToParcel(android.os.Parcel, int);
|
||||||
field @NonNull public static final android.os.Parcelable.Creator<android.view.inputmethod.InputMethodInfo> CREATOR;
|
field @NonNull public static final android.os.Parcelable.Creator<android.view.inputmethod.InputMethodInfo> CREATOR;
|
||||||
|
|||||||
@@ -638,10 +638,11 @@ public final class InputMethodInfo implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return {@code true} if this input method should be shown in the IME picker.
|
* Returns {@code true} if this input method should be shown in menus for selecting an Input
|
||||||
* @hide
|
* Method, such as the system Input Method Picker. This is {@code false} if the IME is intended
|
||||||
|
* to be accessed programmatically.
|
||||||
*/
|
*/
|
||||||
public boolean showInInputMethodPicker() {
|
public boolean shouldShowInInputMethodPicker() {
|
||||||
return mShowInInputMethodPicker;
|
return mShowInInputMethodPicker;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ final class InputMethodSubtypeSwitchingController {
|
|||||||
final int numImes = imis.size();
|
final int numImes = imis.size();
|
||||||
for (int i = 0; i < numImes; ++i) {
|
for (int i = 0; i < numImes; ++i) {
|
||||||
final InputMethodInfo imi = imis.get(i);
|
final InputMethodInfo imi = imis.get(i);
|
||||||
if (forImeMenu && !imi.showInInputMethodPicker()) {
|
if (forImeMenu && !imi.shouldShowInInputMethodPicker()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
final List<InputMethodSubtype> explicitlyOrImplicitlyEnabledSubtypeList =
|
final List<InputMethodSubtype> explicitlyOrImplicitlyEnabledSubtypeList =
|
||||||
|
|||||||
Reference in New Issue
Block a user