From 028ee31ac5afcfd6f491d46364f7bcefbba13381 Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Thu, 7 Apr 2022 15:44:46 +0200 Subject: [PATCH] YADESK-636 reset OATH sets correct hasKey property --- lib/android/oath/state.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/android/oath/state.dart b/lib/android/oath/state.dart index 77b04ed4..b74fe168 100755 --- a/lib/android/oath/state.dart +++ b/lib/android/oath/state.dart @@ -41,7 +41,8 @@ class _AndroidOathStateNotifier extends OathStateNotifier { Future reset() async { try { await _api.reset(); - setData(state.value!.copyWith(locked: false, remembered: false)); + setData(state.value! + .copyWith(locked: false, remembered: false, hasKey: false)); _ref.read(androidCredentialsProvider.notifier).reset(); } catch (e) { _log.config('Calling reset failed with exception: $e');