File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
java/com/afwsamples/testdpc/common/preference Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,6 @@ public class DpcPreferenceHelper {
93
93
* not yet assigned.
94
94
*/
95
95
private int getDeviceSdkInt () {
96
- if (BuildCompat .isAtLeastP ()) {
97
- return Build .VERSION_CODES .CUR_DEVELOPMENT ;
98
- }
99
96
return Build .VERSION .SDK_INT ;
100
97
}
101
98
@@ -220,10 +217,6 @@ public void disableIfConstraintsNotMet() {
220
217
*/
221
218
private CharSequence findConstraintViolation () {
222
219
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
- }
227
220
return mContext .getString (R .string .requires_android_api_level , mMinSdkVersion );
228
221
}
229
222
Original file line number Diff line number Diff line change 27
27
<enum name =" N" value =" 24" />
28
28
<enum name =" O" value =" 26" />
29
29
<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" />
32
31
</attr >
33
32
34
33
<!-- Constrain a preference to DO or PO admins. -->
You can’t perform that action at this time.
0 commit comments