1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 06:37:30 +00:00
This commit is contained in:
Austin Huang 2021-04-03 11:44:15 -04:00
parent ddb911624c
commit 04ee3883ea
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -56,9 +56,11 @@ public class NewsService extends BaseService {
callback.onSuccess(null); callback.onSuccess(null);
return; return;
} }
final List<Notification> result = new ArrayList<>(); final List<Notification> result = new ArrayList<Notification>();
result.addAll(body.getNewStories()); final List<Notification> newStories = body.getNewStories();
result.addAll(body.getOldStories()); if (newStories != null) result.addAll(newStories);
final List<Notification> oldStories = body.getOldStories();
if (oldStories != null) result.addAll(oldStories);
callback.onSuccess(result); callback.onSuccess(result);
} }