File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
app/src/main/java/com/afwsamples/testdpc/policy/keyguard Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 41
41
import java .util .Date ;
42
42
import java .util .List ;
43
43
44
- @ TargetApi (Build . VERSION_CODES . N )
44
+ @ TargetApi (28 )
45
45
public class PasswordBlacklistFragment extends BaseManageComponentFragment <Void >
46
46
implements EditDeleteArrayAdapter .OnEditButtonClickListener <String > {
47
47
Original file line number Diff line number Diff line change 24
24
import android .content .Intent ;
25
25
import android .net .Uri ;
26
26
import android .os .Bundle ;
27
+ import android .support .v4 .os .BuildCompat ;
27
28
import android .support .v7 .preference .EditTextPreference ;
28
29
import android .support .v7 .preference .ListPreference ;
29
30
import android .support .v7 .preference .Preference ;
@@ -211,7 +212,9 @@ public void onResume() {
211
212
212
213
// Settings that may have been changed by other users need updating.
213
214
updateExpirationTimes ();
214
- refreshBlacklistPreferences ();
215
+ if (BuildCompat .isAtLeastP ()) {
216
+ refreshBlacklistPreferences ();
217
+ }
215
218
}
216
219
217
220
@ Override
You can’t perform that action at this time.
0 commit comments