|
@ -67,7 +67,7 @@ public class CommentsViewerViewModel extends ViewModel { |
|
|
public void onSuccess(final CommentsFetchResponse result) { |
|
|
public void onSuccess(final CommentsFetchResponse result) { |
|
|
// Log.d(TAG, "onSuccess: " + result); |
|
|
// Log.d(TAG, "onSuccess: " + result); |
|
|
if (result == null) { |
|
|
if (result == null) { |
|
|
rootList.postValue(Resource.error(t.getMessage(), getPrevList(rootList))); |
|
|
|
|
|
|
|
|
rootList.postValue(Resource.error(R.string.generic_null_response, getPrevList(rootList))); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
List<Comment> comments = result.getComments(); |
|
|
List<Comment> comments = result.getComments(); |
|
@ -93,7 +93,7 @@ public class CommentsViewerViewModel extends ViewModel { |
|
|
public void onSuccess(final ChildCommentsFetchResponse result) { |
|
|
public void onSuccess(final ChildCommentsFetchResponse result) { |
|
|
// Log.d(TAG, "onSuccess: " + result); |
|
|
// Log.d(TAG, "onSuccess: " + result); |
|
|
if (result == null) { |
|
|
if (result == null) { |
|
|
rootList.postValue(Resource.error(t.getMessage(), getPrevList(replyList))); |
|
|
|
|
|
|
|
|
rootList.postValue(Resource.error(R.string.generic_null_response, getPrevList(replyList))); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
List<Comment> comments = result.getChildComments(); |
|
|
List<Comment> comments = result.getChildComments(); |
|
|