LibreNews-Android
LibreNews-Android copied to clipboard
Fetch channels from server
This adds
- an
available_channels
preference - a DoneCallback for the FlashManager
The SettingsActivityFragment populates the channels
list from the available_channels
, which is updated whenever the FlashRetreiver fetches the API.
The API is also fetched when the server_url
is changed and the callback is used to update the channels list.
This allows to use servers that use more/other channels than the default set and fixes #24.
This is excellent, thank you for your contribution! I will test these changes on a few devices and then hopefully merge.
Hi all—I think everything here looks good, but I'd like to get some second opinions. Could a few other people test to make sure that this PR doesn't break anything?
FWIW, I've been using this every day for the past 10 months and never had any issues.