Merge "DO NOT MERGE. Check for null chip text." into ics-factoryrom
diff --git a/src/com/android/ex/chips/ChipsUtil.java b/src/com/android/ex/chips/ChipsUtil.java
index a89072f..1ff258d 100644
--- a/src/com/android/ex/chips/ChipsUtil.java
+++ b/src/com/android/ex/chips/ChipsUtil.java
@@ -35,8 +35,7 @@
* @return true when the caller can use Chips UI in its environment.
*/
public static boolean supportsChipsUi() {
- // TODO: should use Build.VERSION_SDK_INT when it is determined.
- return TextUtils.equals("IceCreamSandwich", Build.VERSION.RELEASE);
+ return Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH;
}
public static boolean tryUpdateRecencyInfo(MultiAutoCompleteTextView... views) {
@@ -93,4 +92,4 @@
whereBuilder.toString(), whereArgs.toArray(new String[0]));
}
}
-}
\ No newline at end of file
+}