Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with
5 additions and
3 deletions
-
app/src/main/java/awais/instagrabber/webservices/NewsService.java
|
|
@ -56,9 +56,11 @@ public class NewsService extends BaseService { |
|
|
|
callback.onSuccess(null); |
|
|
|
return; |
|
|
|
} |
|
|
|
final List<Notification> result = new ArrayList<>(); |
|
|
|
result.addAll(body.getNewStories()); |
|
|
|
result.addAll(body.getOldStories()); |
|
|
|
final List<Notification> result = new ArrayList<Notification>(); |
|
|
|
final List<Notification> newStories = body.getNewStories(); |
|
|
|
if (newStories != null) result.addAll(newStories); |
|
|
|
final List<Notification> oldStories = body.getOldStories(); |
|
|
|
if (oldStories != null) result.addAll(oldStories); |
|
|
|
callback.onSuccess(result); |
|
|
|
} |
|
|
|
|
|
|
|