π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Restore HOTP advance button in CodeWidget
Prateek Sunal2a97186dce9f
diff --git a/mobile/apps/auth/lib/ui/code_widget.dart b/mobile/apps/auth/lib/ui/code_widget.dartindex cabad7f14a..0c77efd5f7 100644--- a/mobile/apps/auth/lib/ui/code_widget.dart+++ b/mobile/apps/auth/lib/ui/code_widget.dart@@ -403,21 +403,13 @@ class _CodeWidgetState extends State<CodeWidget> {l10n.nextTotpTitle,style: Theme.of(context).textTheme.bodySmall,),- ValueListenableBuilder<String>(- valueListenable: _nextCode,- builder: (context, value, child) {- return Material(- type: MaterialType.transparency,- child: Text(- _getFormattedCode(value),- style: TextStyle(- fontSize: widget.isCompactMode ? 12 : 18,- color: Colors.grey,- ),- textDirection: TextDirection.ltr,- ),- );- },+ InkWell(+ onTap: _onNextHotpTapped,+ child: const Icon(+ Icons.forward_outlined,+ size: 32,+ color: Colors.grey,+ ),),],),@@ -828,6 +820,17 @@ class _CodeWidgetState extends State<CodeWidget> {_updateCodeMetadata().ignore();}+ void _onNextHotpTapped() {+ if (widget.code.type == Type.hotp) {+ CodeStore.instance+ .addCode(+ widget.code.copyWith(counter: widget.code.counter + 1),+ shouldSync: true,+ )+ .ignore();+ }+ }+Future<void> _updateCodeMetadata() async {if (widget.sortKey == null) return;Future.delayed(const Duration(milliseconds: 100), () {