Fix load loop on social reading when API returns last page.

This commit is contained in:
ojiikun 2013-07-02 23:39:33 +00:00
parent dac141633f
commit 8daca86241

View file

@ -370,9 +370,12 @@ public class APIManager {
}
}
for (Feed feed : socialFeedResponse.feeds) {
contentResolver.insert(FeedProvider.FEEDS_URI, feed.getValues());
}
if (socialFeedResponse.feeds != null) {
for (Feed feed : socialFeedResponse.feeds) {
contentResolver.insert(FeedProvider.FEEDS_URI, feed.getValues());
}
}
return socialFeedResponse;
} else {
return null;