mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-23 09:56:23 +03:00
[android] batch credentials only for NFC
This commit is contained in:
parent
f23a38987c
commit
c0f927a98e
@ -7,6 +7,7 @@ import 'package:yubico_authenticator/theme.dart';
|
||||
|
||||
import '../../android/oath/state.dart';
|
||||
import '../../app/models.dart';
|
||||
import '../../core/models.dart';
|
||||
import '../../desktop/models.dart';
|
||||
import '../../widgets/responsive_dialog.dart';
|
||||
|
||||
@ -232,6 +233,9 @@ class _MigrateAccountPageState extends ConsumerState<MigrateAccountPage> {
|
||||
|
||||
void submit() async {
|
||||
|
||||
final deviceNode = ref.watch(currentDeviceProvider);
|
||||
final devicePath = deviceNode?.path;
|
||||
|
||||
_log.debug('Submitting following credentials:');
|
||||
for (var element in _checkedCreds.entries) {
|
||||
if (element.value) {
|
||||
@ -241,7 +245,7 @@ class _MigrateAccountPageState extends ConsumerState<MigrateAccountPage> {
|
||||
}
|
||||
}
|
||||
|
||||
if (isAndroid) {
|
||||
if (isAndroid && (devicePath == null || deviceNode?.transport == Transport.nfc)) {
|
||||
var uris = <String>[];
|
||||
var touchRequired = <bool>[];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user