diff --git a/app/src/main/java/com/prey/json/actions/Lock.java b/app/src/main/java/com/prey/json/actions/Lock.java index a8d08c10..60ea554f 100644 --- a/app/src/main/java/com/prey/json/actions/Lock.java +++ b/app/src/main/java/com/prey/json/actions/Lock.java @@ -322,17 +322,7 @@ public static boolean canDrawOverlays(Context ctx) { * @return true if pattern set, false if not (or if an issue when checking) */ public static boolean isPatternSet(Context ctx) { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { - ContentResolver cr = ctx.getContentResolver(); - try { - int lockPatternEnable = Settings.Secure.getInt(cr, Settings.Secure.LOCK_PATTERN_ENABLED); - return lockPatternEnable == 1; - } catch (Settings.SettingNotFoundException e) { - return false; - } - } else { return false; - } } /**