mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 12:49:55 +01:00
Do not allow the user to tap the start sharing button twice quickly
This commit is contained in:
@@ -84,8 +84,10 @@ public class HotspotIntroFragment extends Fragment {
|
|||||||
progressBar = v.findViewById(R.id.progressBar);
|
progressBar = v.findViewById(R.id.progressBar);
|
||||||
progressTextView = v.findViewById(R.id.progressTextView);
|
progressTextView = v.findViewById(R.id.progressTextView);
|
||||||
|
|
||||||
startButton.setOnClickListener(
|
startButton.setOnClickListener(button -> {
|
||||||
button -> conditionManager.startConditionChecks());
|
startButton.setEnabled(false);
|
||||||
|
conditionManager.startConditionChecks();
|
||||||
|
});
|
||||||
|
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
@@ -97,6 +99,7 @@ public class HotspotIntroFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void startHotspot() {
|
private void startHotspot() {
|
||||||
|
startButton.setEnabled(true);
|
||||||
if (conditionManager.checkAndRequestConditions()) {
|
if (conditionManager.checkAndRequestConditions()) {
|
||||||
showInstallWarningIfNeeded();
|
showInstallWarningIfNeeded();
|
||||||
beginDelayedTransition((ViewGroup) requireView());
|
beginDelayedTransition((ViewGroup) requireView());
|
||||||
|
|||||||
Reference in New Issue
Block a user