summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2023-08-03 16:57:28 +0200
committercyBerta <cyberta@riseup.net>2023-08-03 16:57:28 +0200
commit99bdde5e10222a65d43f5c9d1e3fe2cde502fd1e (patch)
tree3d97cacd991816fcc8d06860d17e8a4078aadab9 /app/src/main
parent347070e5c0d9822f2ed2365ee6321d1d8a312c77 (diff)
show immediate feedback on button click before the provider SetupActivity vanishes
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/SetupSuccessFragment.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/SetupSuccessFragment.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/SetupSuccessFragment.java
index 3e241012..eb775e2a 100644
--- a/app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/SetupSuccessFragment.java
+++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/SetupSuccessFragment.java
@@ -26,7 +26,12 @@ public class SetupSuccessFragment extends BaseSetupFragment {
@Nullable Bundle savedInstanceState) {
FSetupSuccessBinding binding = FSetupSuccessBinding.inflate(inflater, container, false);
- binding.mainButton.setOnClickListener(v -> setupActivityCallback.onSetupFinished());
+ binding.mainButton.setOnClickListener(v -> {
+ setupActivityCallback.onSetupFinished();
+ binding.mainButton.updateState(false, true);
+ binding.mainButton.setEnabled(false);
+ });
+
return binding.getRoot();
}