From 99bdde5e10222a65d43f5c9d1e3fe2cde502fd1e Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 3 Aug 2023 16:57:28 +0200 Subject: show immediate feedback on button click before the provider SetupActivity vanishes --- .../providersetup/fragments/SetupSuccessFragment.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/src/main') 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(); } -- cgit v1.2.3