mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 06:37:30 +00:00
Fix compile error
This commit is contained in:
parent
1191b416ce
commit
4f8de4e7df
@ -67,7 +67,7 @@ public class CommentsViewerViewModel extends ViewModel {
|
||||
public void onSuccess(final CommentsFetchResponse result) {
|
||||
// Log.d(TAG, "onSuccess: " + result);
|
||||
if (result == null) {
|
||||
rootList.postValue(Resource.error(t.getMessage(), getPrevList(rootList)));
|
||||
rootList.postValue(Resource.error(R.string.generic_null_response, getPrevList(rootList)));
|
||||
return;
|
||||
}
|
||||
List<Comment> comments = result.getComments();
|
||||
@ -93,7 +93,7 @@ public class CommentsViewerViewModel extends ViewModel {
|
||||
public void onSuccess(final ChildCommentsFetchResponse result) {
|
||||
// Log.d(TAG, "onSuccess: " + result);
|
||||
if (result == null) {
|
||||
rootList.postValue(Resource.error(t.getMessage(), getPrevList(replyList)));
|
||||
rootList.postValue(Resource.error(R.string.generic_null_response, getPrevList(replyList)));
|
||||
return;
|
||||
}
|
||||
List<Comment> comments = result.getChildComments();
|
||||
|
Loading…
Reference in New Issue
Block a user