summaryrefslogtreecommitdiffstats
path: root/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2015-07-29 15:21:36 -0700
committerDianne Hackborn <hackbod@google.com>2015-07-29 15:21:36 -0700
commit424fb60606196329311b7400b587fafd506cf907 (patch)
tree655b7de476aa9c83dbfd8f8b7a9593b0409c7f31 /samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions
parent9146cbdb556a814628176f599f7cd9bde28b75d9 (diff)
downloadandroid_development-424fb60606196329311b7400b587fafd506cf907.tar.gz
android_development-424fb60606196329311b7400b587fafd506cf907.tar.bz2
android_development-424fb60606196329311b7400b587fafd506cf907.zip
Change MNC codename to just M.
Change-Id: If86839c5d1f0bf4f013aa786ba2dc5bcb39527f8
Diffstat (limited to 'samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions')
-rw-r--r--samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/PermissionUtil.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/PermissionUtil.java b/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/PermissionUtil.java
index ba2370fda..d0742ead9 100644
--- a/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/PermissionUtil.java
+++ b/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/PermissionUtil.java
@@ -79,12 +79,6 @@ public abstract class PermissionUtil {
}
public static boolean isMNC() {
- /*
- TODO: In the Android M Preview release, checking if the platform is M is done through
- the codename, not the version code. Once the API has been finalised, the following check
- should be used: */
- // return Build.VERSION.SDK_INT == Build.VERSION_CODES.MNC
-
- return "MNC".equals(Build.VERSION.CODENAME);
+ return Build.VERSION.SDK_INT >= Build.VERSION_CODES.M;
}
}