Search in sources :

Example 11 with DownloaderUpdate

use of de.danoeh.antennapod.core.event.DownloaderUpdate in project AntennaPod by AntennaPod.

the class DownloadLogFragment method onEvent.

@Subscribe(sticky = true, threadMode = ThreadMode.MAIN)
public void onEvent(DownloadEvent event) {
    Log.d(TAG, "onEvent() called with: " + "event = [" + event + "]");
    DownloaderUpdate update = event.update;
    runningDownloads = update.downloaders;
    adapter.setRunningDownloads(runningDownloads);
}
Also used : DownloaderUpdate(de.danoeh.antennapod.core.event.DownloaderUpdate) Subscribe(org.greenrobot.eventbus.Subscribe)

Aggregations

DownloaderUpdate (de.danoeh.antennapod.core.event.DownloaderUpdate)11 Subscribe (org.greenrobot.eventbus.Subscribe)7