Added no history option

This commit is contained in:
M66B
2019-10-05 14:52:40 +02:00
parent 40c93e6541
commit 2752f7435b
10 changed files with 185 additions and 35 deletions

View File

@@ -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) {