mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 00:20:50 +01: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