Fixing chips so they can be built with sdk 21.
am: f459447
* commit 'f4594479c9861ab540e654bf8e504c2555ea90d0':
Fixing chips so they can be built with sdk 21.
diff --git a/src/com/android/ex/chips/ChipsUtil.java b/src/com/android/ex/chips/ChipsUtil.java
index a537ec3..e0471dc 100644
--- a/src/com/android/ex/chips/ChipsUtil.java
+++ b/src/com/android/ex/chips/ChipsUtil.java
@@ -45,7 +45,7 @@
*/
public static boolean isRunningMncOrLater() {
// TODO: Update to use M once it's finalized in VERSION_CODES
- return Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP_MR1;
+ return Build.VERSION.SDK_INT > 22;
}
/**
@@ -54,7 +54,7 @@
*/
public static int checkPermission(Context context, String permission) {
if (isRunningMncOrLater()) {
- // Use "context.checkSelfPermission(permission)" once it's safe to move to M sdk
+ // TODO: Use "context.checkSelfPermission(permission)" once it's safe to move to M sdk
return context.checkPermission(permission, Process.myPid(), Process.myUid());
} else {
// Assume that we have permission before M.
@@ -73,4 +73,4 @@
}
return true;
}
-}
\ No newline at end of file
+}