Skip to content

Commit

Permalink
Deprecated functionality
Browse files Browse the repository at this point in the history
Deprecated functionality
  • Loading branch information
oaliaga committed Jun 10, 2024
1 parent 11e55f9 commit 779d0d9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/src/main/java/com/prey/json/actions/Lock.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

/**
Expand Down

0 comments on commit 779d0d9

Please sign in to comment.