diff options
author | 2013-05-21 15:09:02 -0700 | |
---|---|---|
committer | 2013-05-21 15:13:23 -0700 | |
commit | db7d4da3e5e51662ae561632ad104473d1f825c4 (patch) | |
tree | 485c2409fe39405e21258267a1296bca15d7b230 /java/src/com/android/inputmethod/compat/IntentCompatUtils.java | |
parent | ea88e2ffe86cad12387c8ab741c38de6e6e15713 (diff) | |
download | latinime-db7d4da3e5e51662ae561632ad104473d1f825c4.tar.gz latinime-db7d4da3e5e51662ae561632ad104473d1f825c4.tar.xz latinime-db7d4da3e5e51662ae561632ad104473d1f825c4.zip |
Clean up IntentCompatUtils a bit
Change-Id: I803aa6c2160bfa1ffe992b28e7eb6e8a320c9762
Diffstat (limited to 'java/src/com/android/inputmethod/compat/IntentCompatUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/compat/IntentCompatUtils.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/compat/IntentCompatUtils.java b/java/src/com/android/inputmethod/compat/IntentCompatUtils.java index df2e22fe8..965a2a891 100644 --- a/java/src/com/android/inputmethod/compat/IntentCompatUtils.java +++ b/java/src/com/android/inputmethod/compat/IntentCompatUtils.java @@ -21,16 +21,15 @@ import android.content.Intent; public final class IntentCompatUtils { // Note that Intent.ACTION_USER_INITIALIZE have been introduced in API level 17 // (Build.VERSION_CODE.JELLY_BEAN_MR1). - public static final String ACTION_USER_INITIALIZE = - (String)CompatUtils.getFieldValue(null, null, + private static final String ACTION_USER_INITIALIZE = + (String)CompatUtils.getFieldValue(null /* receiver */, null /* defaultValue */, CompatUtils.getField(Intent.class, "ACTION_USER_INITIALIZE")); private IntentCompatUtils() { // This utility class is not publicly instantiable. } - public static boolean has_ACTION_USER_INITIALIZE(final Intent intent) { - return ACTION_USER_INITIALIZE != null && intent != null - && ACTION_USER_INITIALIZE.equals(intent.getAction()); + public static boolean is_ACTION_USER_INITIALIZE(final String action) { + return ACTION_USER_INITIALIZE != null && ACTION_USER_INITIALIZE.equals(action); } } |