From 5dfe7ac7fa0ed2389dc5615ff9ec599f141dfb58 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Wed, 29 Jan 2025 02:36:45 +0100 Subject: provider selection UI: add some comments about where which provider selection entries are added --- .../providersetup/fragments/ProviderSelectionFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/src/main/java/se/leap') diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/ProviderSelectionFragment.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/ProviderSelectionFragment.java index 66b1dd00..823004b2 100644 --- a/app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/ProviderSelectionFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/ProviderSelectionFragment.java @@ -75,6 +75,7 @@ public class ProviderSelectionFragment extends BaseSetupFragment implements Canc binding = FProviderSelectionBinding.inflate(inflater, container, false); radioButtons = new ArrayList<>(); + // add configured providers for (int i = 0; i < viewModel.size(); i++) { RadioButton radioButton = new RadioButton(binding.getRoot().getContext()); radioButton.setText(viewModel.getProviderName(i)); @@ -83,13 +84,14 @@ public class ProviderSelectionFragment extends BaseSetupFragment implements Canc radioButtons.add(radioButton); } + // add new provider entry RadioButton addProviderRadioButton = new RadioButton(binding.getRoot().getContext()); addProviderRadioButton.setText(getText(R.string.add_provider)); addProviderRadioButton.setId(ADD_PROVIDER); binding.providerRadioGroup.addView(addProviderRadioButton); radioButtons.add(addProviderRadioButton); - + // invite code entry RadioButton inviteCodeRadioButton = new RadioButton(binding.getRoot().getContext()); inviteCodeRadioButton.setText(R.string.enter_invite_code); inviteCodeRadioButton.setId(INVITE_CODE_PROVIDER); -- cgit v1.2.3