Small fix

This commit is contained in:
Martin Fietz 2015-04-18 16:16:45 +02:00
parent 1bb1f0990f
commit 512ce6ad51
3 changed files with 7 additions and 5 deletions

View File

@ -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();

View File

@ -40,10 +40,8 @@ public class NewEpisodesFragment extends AllEpisodesFragment {
public void onEvent(QueueEvent event) {
Log.d(TAG, "onEvent(" + event + ")");
if(event.action == QueueEvent.Action.ADDED) {
startItemLoader();
}
}
@Override
public void onStart() {

View File

@ -1,5 +1,7 @@
package de.danoeh.antennapod.core.util;
import android.util.Log;
import org.apache.commons.lang3.StringUtils;
import java.text.ParsePosition;
@ -96,6 +98,7 @@ public class DateUtils {
return result;
}
}
Log.d(TAG, "Could not parse '" + date + "'");
return null;
}