mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 18:22:39 +03:00
Make "open app on NDEF" default to true.
This commit is contained in:
parent
1f0103b9b9
commit
e60ded1347
@ -18,7 +18,7 @@ class AppPreferences(context: Context) {
|
|||||||
context.getSharedPreferences(PREFS_FILE, Context.MODE_PRIVATE)
|
context.getSharedPreferences(PREFS_FILE, Context.MODE_PRIVATE)
|
||||||
|
|
||||||
val openAppOnNfcTap: Boolean
|
val openAppOnNfcTap: Boolean
|
||||||
get() = prefs.getBoolean(PREF_NFC_OPEN_APP, false)
|
get() = prefs.getBoolean(PREF_NFC_OPEN_APP, true)
|
||||||
|
|
||||||
val bypassTouchOnNfcTap: Boolean
|
val bypassTouchOnNfcTap: Boolean
|
||||||
get() = prefs.getBoolean(PREF_NFC_BYPASS_TOUCH, false)
|
get() = prefs.getBoolean(PREF_NFC_BYPASS_TOUCH, false)
|
||||||
|
@ -18,7 +18,7 @@ class AndroidSettingsPage extends ConsumerWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
final nfcOpenApp = ref.watch(prefProvider).getBool(prefNfcOpenApp) ?? false;
|
final nfcOpenApp = ref.watch(prefProvider).getBool(prefNfcOpenApp) ?? true;
|
||||||
final nfcBypassTouch =
|
final nfcBypassTouch =
|
||||||
ref.watch(prefProvider).getBool(prefNfcBypassTouch) ?? false;
|
ref.watch(prefProvider).getBool(prefNfcBypassTouch) ?? false;
|
||||||
final nfcCopyOtp = ref.watch(prefProvider).getBool(prefNfcCopyOtp) ?? false;
|
final nfcCopyOtp = ref.watch(prefProvider).getBool(prefNfcCopyOtp) ?? false;
|
||||||
|
Loading…
Reference in New Issue
Block a user