diff options
author | Yohei Yukawa <yukawa@google.com> | 2015-03-12 15:31:25 +0900 |
---|---|---|
committer | Yohei Yukawa <yukawa@google.com> | 2015-03-13 22:43:06 +0900 |
commit | 9c83ff471d482adabb8058dbd2a80c1e520765c8 (patch) | |
tree | 7bcf3056639fcbd24ca3d3974e53404aefd13db7 /core/java | |
parent | 216ce5d7b2b0c10305c8e109d5b5197c67cd76ab (diff) | |
download | frameworks_base-9c83ff471d482adabb8058dbd2a80c1e520765c8.zip frameworks_base-9c83ff471d482adabb8058dbd2a80c1e520765c8.tar.gz frameworks_base-9c83ff471d482adabb8058dbd2a80c1e520765c8.tar.bz2 |
Expose isSystemImeThatHasSubtypeOf to Settings
This is a follow up CL for a recent attempt to minimize
the number of default enabled IMEs.
- part1: I831502db502f4073c9c2f50ce7705a4e45e2e1e3
- part2: Ife93d909fb8a24471c425c903e2b7048826e17a3
- part3: I6571d464a46453934f0a8f5e79018a67a9a3c845
- part4: I871ccda787eb0f1099ba3574356c1da4b33681f3
In the avobe CLs, an internal (hidden) method
InputMethodUtils.isValidSystemDefaultIme was marked as
deprecated and we decided to migrate to
InputMethodUtils.isSystemImeThatHasSubtypeOf.
To finish this refactoring, this CL make the new
method visible to the settings app.
InputMethodUtils.isValidSystemDefaultIme remains
to be an internal method. No behavior change is
intended.
Change-Id: I8cb9ca40d15af099c3d1ded46797fb57f14fb9e8
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/com/android/internal/inputmethod/InputMethodUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/com/android/internal/inputmethod/InputMethodUtils.java b/core/java/com/android/internal/inputmethod/InputMethodUtils.java index 9aa36d3..29326d3a 100644 --- a/core/java/com/android/internal/inputmethod/InputMethodUtils.java +++ b/core/java/com/android/internal/inputmethod/InputMethodUtils.java @@ -132,7 +132,7 @@ public class InputMethodUtils { return containsSubtypeOf(imi, ENGLISH_LOCALE.getLanguage(), SUBTYPE_MODE_KEYBOARD); } - private static boolean isSystemImeThatHasSubtypeOf(final InputMethodInfo imi, + public static boolean isSystemImeThatHasSubtypeOf(final InputMethodInfo imi, final Context context, final boolean checkDefaultAttribute, @Nullable final Locale requiredLocale, final boolean checkCountry, final String requiredSubtypeMode) { |