Skip to content

Commit a7febb8

Browse files
author
Kenny Guy
committed
Start using api version instead of codename.
Update isBeforeN to check for SDK_INT Bug: 29143947 Change-Id: Ieb7bb4486fb27b1c93e469553fb918142040aaf6
1 parent 7bdee2f commit a7febb8

File tree

1 file changed

+1
-2
lines changed
  • app/src/main/java/com/afwsamples/testdpc/common

1 file changed

+1
-2
lines changed

app/src/main/java/com/afwsamples/testdpc/common/Util.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ public static boolean isBeforeM() {
104104
}
105105

106106
public static boolean isBeforeN() {
107-
// STOPSHIP Change to SDK_INT.
108-
return isBeforeM() || !Build.VERSION.CODENAME.startsWith("N");
107+
return Build.VERSION.SDK_INT < VERSION_CODES.N;
109108
}
110109

111110
@TargetApi(VERSION_CODES.N)

0 commit comments

Comments
 (0)