mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 06:37:30 +00:00
close #952
This commit is contained in:
parent
ddb911624c
commit
04ee3883ea
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user