diff options
author | Martin Fietz <marf@hadiko-99-4.hadiko.uni-karlsruhe.de> | 2015-04-18 16:16:45 +0200 |
---|---|---|
committer | Martin Fietz <marf@hadiko-99-4.hadiko.uni-karlsruhe.de> | 2015-04-18 16:16:45 +0200 |
commit | 512ce6ad51d71c576b4c81246db39de98c9fb73a (patch) | |
tree | a8b7b2de5ada8a7227663433bfc8cf9a616a5c0c /app | |
parent | 1bb1f0990f6b9fb6b30383083aa592fd40c4c72e (diff) | |
download | AntennaPod-512ce6ad51d71c576b4c81246db39de98c9fb73a.zip |
Small fix
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java | 5 | ||||
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/NewEpisodesFragment.java | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java index 118196c8b..ce9fac7a3 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java @@ -41,6 +41,7 @@ import de.danoeh.antennapod.core.storage.DBReader; import de.danoeh.antennapod.core.storage.DBTasks; import de.danoeh.antennapod.core.storage.DBWriter; import de.danoeh.antennapod.core.storage.DownloadRequester; +import de.danoeh.antennapod.core.util.LongList; import de.danoeh.antennapod.core.util.QueueAccess; import de.danoeh.antennapod.menuhandler.MenuItemUtils; import de.danoeh.antennapod.menuhandler.NavDrawerActivity; @@ -70,7 +71,7 @@ public class AllEpisodesFragment extends Fragment { private List<FeedItem> unreadItems; private List<FeedItem> recentItems; - private QueueAccess queueAccess; + private LongList queueAccess; private List<Downloader> downloaderList; private boolean itemsLoaded = false; @@ -448,7 +449,7 @@ public class AllEpisodesFragment extends Fragment { if (lists != null) { unreadItems = (List<FeedItem>) lists[0]; recentItems = (List<FeedItem>) lists[1]; - queueAccess = (QueueAccess) lists[2]; + queueAccess = (LongList) lists[2]; itemsLoaded = true; if (viewsCreated && activity.get() != null) { onFragmentLoaded(); diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/NewEpisodesFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/NewEpisodesFragment.java index dda9dd8c7..fd22289f2 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/NewEpisodesFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/NewEpisodesFragment.java @@ -40,9 +40,7 @@ public class NewEpisodesFragment extends AllEpisodesFragment { public void onEvent(QueueEvent event) { Log.d(TAG, "onEvent(" + event + ")"); - if(event.action == QueueEvent.Action.ADDED) { - startItemLoader(); - } + startItemLoader(); } @Override |