summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2025-01-29 02:36:45 +0100
committercyBerta <cyberta@riseup.net>2025-02-03 16:21:57 +0100
commit5dfe7ac7fa0ed2389dc5615ff9ec599f141dfb58 (patch)
treecdf4ed6e46760211eb77970dac51b49a954c97a3 /app/src
parent1d4883b2434ef261bc45b5967f697ee7d34c42d9 (diff)
provider selection UI: add some comments about where which provider selection entries are added
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/ProviderSelectionFragment.java4
1 files changed, 3 insertions, 1 deletions
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);