LibreNews-Android icon indicating copy to clipboard operation
LibreNews-Android copied to clipboard

Fetch channels from server

Open jomo opened this issue 5 years ago • 3 comments

This adds

  1. an available_channels preference
  2. 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.

jomo avatar Nov 05 '19 22:11 jomo

This is excellent, thank you for your contribution! I will test these changes on a few devices and then hopefully merge.

milesmcc avatar Nov 05 '19 23:11 milesmcc

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?

milesmcc avatar Nov 30 '19 20:11 milesmcc

FWIW, I've been using this every day for the past 10 months and never had any issues.

jomo avatar Sep 24 '20 11:09 jomo