Make "open app on NDEF" default to true.

This commit is contained in:
Dain Nilsson 2022-08-19 17:27:17 +02:00
parent 1f0103b9b9
commit e60ded1347
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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;