mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 03:19:24 +01:00
Added no history option
This commit is contained in:
@@ -742,9 +742,11 @@ public class Helper {
|
||||
}
|
||||
}
|
||||
|
||||
static boolean hasAuthentication(Context context) {
|
||||
static boolean noHistory(Context context) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
return prefs.getBoolean("biometrics", false);
|
||||
boolean biometrics = prefs.getBoolean("biometrics", false);
|
||||
boolean no_history = prefs.getBoolean("no_history", false);
|
||||
return (biometrics || no_history);
|
||||
}
|
||||
|
||||
static boolean shouldAuthenticate(Context context) {
|
||||
|
||||
Reference in New Issue
Block a user