Skip to content

Commit bd02ff4

Browse files
committed
DpcPreference support for O-MR1 features
Change-Id: I0add2cbab3857a12542ae3272bbe2036c75ba742 (cherry picked from commit 9194ef0ba925f68340f97f7ae0dea5babe96d31f)
1 parent 6349688 commit bd02ff4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/src/main/java/com/afwsamples/testdpc/common/preference/DpcPreferenceHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ public class DpcPreferenceHelper {
9393
* not yet assigned.
9494
*/
9595
private int getDeviceSdkInt() {
96-
if (BuildCompat.isAtLeastO()) {
97-
return Build.VERSION_CODES.O;
96+
if (BuildCompat.isAtLeastOMR1()) {
97+
return Build.VERSION_CODES.CUR_DEVELOPMENT;
9898
}
9999
return Build.VERSION.SDK_INT;
100100
}

app/src/main/res/values/attrs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<enum name="M" value="23" />
2727
<enum name="N" value="24" />
2828
<enum name="O" value="26" />
29+
<enum name="O_MR1" value="10000" />
2930
<!-- Build.VERSION_CODES.CUR_DEVELOPMENT, fill in the sdk int once it is finalized -->
3031
</attr>
3132

0 commit comments

Comments
 (0)