aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/compat
diff options
context:
space:
mode:
authorDan Zivkovic <zivkovic@google.com>2015-02-11 23:04:40 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-11 23:04:40 +0000
commit28f9aa1fad2b6cc889af156a3490fe28d098cbbb (patch)
treefb69076fa9c9fa78f5f11252ab431caf5f0942e8 /java/src/com/android/inputmethod/compat
parentfe674a441f0ece3d772acba01be09a0a0d8ff5ce (diff)
parent5254c01d4cc024527479d4dc5fab2ed2516c395c (diff)
downloadlatinime-28f9aa1fad2b6cc889af156a3490fe28d098cbbb.tar.gz
latinime-28f9aa1fad2b6cc889af156a3490fe28d098cbbb.tar.xz
latinime-28f9aa1fad2b6cc889af156a3490fe28d098cbbb.zip
am 5254c01d: Fix master build.
* commit '5254c01d4cc024527479d4dc5fab2ed2516c395c': Fix master build.
Diffstat (limited to 'java/src/com/android/inputmethod/compat')
-rw-r--r--java/src/com/android/inputmethod/compat/InputMethodSubtypeCompatUtils.java5
-rw-r--r--java/src/com/android/inputmethod/compat/NotificationCompatUtils.java5
2 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/compat/InputMethodSubtypeCompatUtils.java b/java/src/com/android/inputmethod/compat/InputMethodSubtypeCompatUtils.java
index 853830808..58ad4bd4c 100644
--- a/java/src/com/android/inputmethod/compat/InputMethodSubtypeCompatUtils.java
+++ b/java/src/com/android/inputmethod/compat/InputMethodSubtypeCompatUtils.java
@@ -38,7 +38,7 @@ public final class InputMethodSubtypeCompatUtils {
int.class, int.class, String.class, String.class, String.class, boolean.class,
boolean.class, int.class);
static {
- if (Constants.JELLY_BEAN_MR1_OR_HIGHER) {
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
if (CONSTRUCTOR_INPUT_METHOD_SUBTYPE == null) {
android.util.Log.w(TAG, "Warning!!! Constructor is not defined.");
}
@@ -59,7 +59,8 @@ public final class InputMethodSubtypeCompatUtils {
public static InputMethodSubtype newInputMethodSubtype(int nameId, int iconId, String locale,
String mode, String extraValue, boolean isAuxiliary,
boolean overridesImplicitlyEnabledSubtype, int id) {
- if (CONSTRUCTOR_INPUT_METHOD_SUBTYPE == null || !Constants.JELLY_BEAN_MR1_OR_HIGHER) {
+ if (CONSTRUCTOR_INPUT_METHOD_SUBTYPE == null
+ || Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR1) {
return new InputMethodSubtype(nameId, iconId, locale, mode, extraValue, isAuxiliary,
overridesImplicitlyEnabledSubtype);
}
diff --git a/java/src/com/android/inputmethod/compat/NotificationCompatUtils.java b/java/src/com/android/inputmethod/compat/NotificationCompatUtils.java
index 0646558e4..70ab972c5 100644
--- a/java/src/com/android/inputmethod/compat/NotificationCompatUtils.java
+++ b/java/src/com/android/inputmethod/compat/NotificationCompatUtils.java
@@ -17,8 +17,7 @@
package com.android.inputmethod.compat;
import android.app.Notification;
-
-import com.android.inputmethod.latin.common.Constants;
+import android.os.Build;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
@@ -74,7 +73,7 @@ public class NotificationCompatUtils {
@SuppressWarnings("deprecation")
public static Notification build(final Notification.Builder builder) {
- if (Constants.JELLY_BEAN_OR_HIGHER) {
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
// #build was added in API level 16, JELLY_BEAN
return (Notification) CompatUtils.invoke(builder, null, METHOD_build);
}