Create radio dialog to select extra BT bootstraps
Since completing issue #79 (closed) in MR !55 (merged), we've removed the dependence on the Ceno extension for managing the Ceno settings. All settings are now displayed/controlled natively via Kotlin code. This means that we can be more creative with how we interact with these values.
The first suggestion I have is to create a "radio dialog" for the Extra BitTorrent Bootstraps
option. This could look similar to the "Set app theme" dialog (see the attached screenshot). The options listed should be created dynamically from the BT_BOOTSTRAPS_EXTRA
property. For example, the dialog could read like this,
Select extra BitTorrent bootstrap
* Iran
* Myanmar
* Russia
* Ukraine
* Custom
* None
The "Custom" option would include a text field where a user can enter the IP address of another BT bootstrap node (or it could simply pop-up the current text entry dialog shown in the other attached screenshot). Also, this text field should check for correct formatting, i.e. a set of IP address separated by commas, such that a user can't enter an abitrary string that could cause unintended side-effects.
Finally, when one of the locale-specific BT bootstraps is selected we should only display the locale in the summary of the menu option, not the IP address of the bootstrap. but if Custom is selected we should make sure to display the user-provided IP address somewhere, probably in the summary.