Add fingerprint setting

This commit is contained in:
Jeremy committed 2017-12-07 15:57:16 +01:00
1 parent 05a5da4c8d
commit a5b1535fb8
6 files changed
+32 -6

No files matched your search

@@ -55,4 +55,10 @@ public class PrefsUtil {
return prefs.getBoolean(ctx.getString(R.string.clipboard_notifications_key),
ctx.getResources().getBoolean(R.bool.clipboard_notifications_default));
}
public static boolean isFingerprintEnable(Context ctx) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);
return prefs.getBoolean(ctx.getString(R.string.fingerprint_enable_key),
ctx.getResources().getBoolean(R.bool.fingerprint_enable_default));
}
}