Exclude from recents when using biometric authentication

This commit is contained in:
M66B
2019-07-11 07:41:20 +02:00
parent 7d60483274
commit c758723855
5 changed files with 48 additions and 2 deletions

View File

@@ -655,6 +655,11 @@ public class Helper {
return Objects.equals(signed, expected);
}
static boolean hasAuthentication(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
return prefs.getBoolean("biometrics", false);
}
static boolean shouldAuthenticate(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean biometrics = prefs.getBoolean("biometrics", false);