From c6abfa14ea19c2d7fb69a6cb800f5f063b38fc07 Mon Sep 17 00:00:00 2001 From: Valere Date: Thu, 2 Apr 2020 16:54:30 +0200 Subject: [PATCH] Fix / Bind continue button --- .../crypto/recover/BootstrapAccountPasswordFragment.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vector/src/main/java/im/vector/riotx/features/crypto/recover/BootstrapAccountPasswordFragment.kt b/vector/src/main/java/im/vector/riotx/features/crypto/recover/BootstrapAccountPasswordFragment.kt index 553bff75c4..abe6e54092 100644 --- a/vector/src/main/java/im/vector/riotx/features/crypto/recover/BootstrapAccountPasswordFragment.kt +++ b/vector/src/main/java/im/vector/riotx/features/crypto/recover/BootstrapAccountPasswordFragment.kt @@ -83,6 +83,14 @@ class BootstrapAccountPasswordFragment @Inject constructor( } .disposeOnDestroyView() + bootstrapPasswordButton.clicks() + .debounce(300, TimeUnit.MILLISECONDS) + .observeOn(AndroidSchedulers.mainThread()) + .subscribe { + submit() + } + .disposeOnDestroyView() + withState(sharedViewModel) { state -> (state.step as? BootstrapStep.AccountPassword)?.failure?.let { bootstrapAccountPasswordTil.error = it