mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Exclude from recents when using biometric authentication
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user