diff --git a/lib/app/views/reset_dialog.dart b/lib/app/views/reset_dialog.dart index 52c3d1ad4..b651fa3fb 100644 --- a/lib/app/views/reset_dialog.dart +++ b/lib/app/views/reset_dialog.dart @@ -123,6 +123,12 @@ class _ResetDialogState extends ConsumerState { _application == Capability.fido2 && !ref.watch(rpcStateProvider.select((state) => state.isAdmin)); + // show the progress widgets on desktop, or on Android when using USB + final showFidoResetProgress = !Platform.isAndroid || + (Platform.isAndroid && + (ref.read(currentDeviceProvider)?.transport == Transport.usb || + _currentStep == _totalSteps)); + return ResponsiveDialog( title: Text(l10n.s_factory_reset), key: factoryResetCancel, @@ -323,10 +329,12 @@ class _ResetDialogState extends ConsumerState { ), ], if (_resetting) - if (_application == Capability.fido2 && _currentStep >= 0) ...[ + if (_application == Capability.fido2 && + _currentStep >= 0 && + showFidoResetProgress) ...[ Text('${l10n.s_status}: ${_getMessage()}'), LinearProgressIndicator(value: progress), - ] else + ] else if (showFidoResetProgress) const LinearProgressIndicator() ] .map((e) => Padding(