diff options
author | 2012-04-03 18:01:04 +0900 | |
---|---|---|
committer | 2012-04-03 18:01:04 +0900 | |
commit | fde7efd87710dcc9e8376e3ef6db287e254c65fc (patch) | |
tree | 54112ce5081dae1d381e2fe7fa285033b4baafec /java/src/com/android/inputmethod/compat/EditorInfoCompatUtils.java | |
parent | d2c5533fd9dba55df8b2726b449232338dcaf93f (diff) | |
download | latinime-fde7efd87710dcc9e8376e3ef6db287e254c65fc.tar.gz latinime-fde7efd87710dcc9e8376e3ef6db287e254c65fc.tar.xz latinime-fde7efd87710dcc9e8376e3ef6db287e254c65fc.zip |
Add private constructor to utility classes
Bug: 6129704
Change-Id: I52925ae7bd80683f63efc48649448865a5654f41
Diffstat (limited to 'java/src/com/android/inputmethod/compat/EditorInfoCompatUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/compat/EditorInfoCompatUtils.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/compat/EditorInfoCompatUtils.java b/java/src/com/android/inputmethod/compat/EditorInfoCompatUtils.java index d1af7a527..08c246f8b 100644 --- a/java/src/com/android/inputmethod/compat/EditorInfoCompatUtils.java +++ b/java/src/com/android/inputmethod/compat/EditorInfoCompatUtils.java @@ -21,12 +21,16 @@ import android.view.inputmethod.EditorInfo; import java.lang.reflect.Field; public class EditorInfoCompatUtils { + // EditorInfo.IME_FLAG_FORCE_ASCII has been introduced since API#16 (JellyBean). private static final Field FIELD_IME_FLAG_FORCE_ASCII = CompatUtils.getField( EditorInfo.class, "IME_FLAG_FORCE_ASCII"); private static final Integer OBJ_IME_FLAG_FORCE_ASCII = (Integer) CompatUtils .getFieldValue(null, null, FIELD_IME_FLAG_FORCE_ASCII); - // EditorInfo.IME_FLAG_FORCE_ASCII has been introduced since API#16 (JellyBean). + private EditorInfoCompatUtils() { + // This utility class is not publicly instantiable. + } + public static boolean hasFlagForceAscii(int imeOptions) { if (OBJ_IME_FLAG_FORCE_ASCII == null) return false; |