mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 10:11:52 +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)
|
||||
|
||||
val openAppOnNfcTap: Boolean
|
||||
get() = prefs.getBoolean(PREF_NFC_OPEN_APP, false)
|
||||
get() = prefs.getBoolean(PREF_NFC_OPEN_APP, true)
|
||||
|
||||
val bypassTouchOnNfcTap: Boolean
|
||||
get() = prefs.getBoolean(PREF_NFC_BYPASS_TOUCH, false)
|
||||
|
@ -18,7 +18,7 @@ class AndroidSettingsPage extends ConsumerWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final nfcOpenApp = ref.watch(prefProvider).getBool(prefNfcOpenApp) ?? false;
|
||||
final nfcOpenApp = ref.watch(prefProvider).getBool(prefNfcOpenApp) ?? true;
|
||||
final nfcBypassTouch =
|
||||
ref.watch(prefProvider).getBool(prefNfcBypassTouch) ?? false;
|
||||
final nfcCopyOtp = ref.watch(prefProvider).getBool(prefNfcCopyOtp) ?? false;
|
||||
|
Loading…
Reference in New Issue
Block a user