Skip to content

Commit f6c189c

Browse files
committed
P is now finalized to be 28
Change-Id: I0272f44485024c69c9f4c4e104933ccff6f4f21b
1 parent 1495460 commit f6c189c

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ public class DpcPreferenceHelper {
9393
* not yet assigned.
9494
*/
9595
private int getDeviceSdkInt() {
96-
if (BuildCompat.isAtLeastP()) {
97-
return Build.VERSION_CODES.CUR_DEVELOPMENT;
98-
}
9996
return Build.VERSION.SDK_INT;
10097
}
10198

@@ -220,10 +217,6 @@ public void disableIfConstraintsNotMet() {
220217
*/
221218
private CharSequence findConstraintViolation() {
222219
if (getDeviceSdkInt() < mMinSdkVersion) {
223-
// FIXME: Remove this special checking once P is out.
224-
if (mMinSdkVersion > 27) {
225-
return mContext.getString(R.string.requires_preview_release);
226-
}
227220
return mContext.getString(R.string.requires_android_api_level, mMinSdkVersion);
228221
}
229222

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
<enum name="N" value="24" />
2828
<enum name="O" value="26" />
2929
<enum name="O_MR1" value="27" />
30-
<enum name="P" value="10000" />
31-
<!-- Build.VERSION_CODES.CUR_DEVELOPMENT, fill in the sdk int once it is finalized -->
30+
<enum name="P" value="28" />
3231
</attr>
3332

3433
<!-- Constrain a preference to DO or PO admins. -->

0 commit comments

Comments
 (0)