am 424fb606: Change MNC codename to just M.

* commit '424fb60606196329311b7400b587fafd506cf907':
  Change MNC codename to just M.
This commit is contained in:
Dianne Hackborn
2015-07-31 17:18:32 +00:00
committed by Android Git Automerger
2 changed files with 2 additions and 14 deletions

View File

@@ -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;
}
}

View File

@@ -124,12 +124,6 @@ public class MainActivity extends Activity {
}
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;
}
}