From 4f8de4e7df3fbd4be36f004f9c2a02e0204c2c96 Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Sat, 12 Jun 2021 08:42:12 +0900 Subject: [PATCH] Fix compile error --- .../instagrabber/viewmodels/CommentsViewerViewModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/viewmodels/CommentsViewerViewModel.java b/app/src/main/java/awais/instagrabber/viewmodels/CommentsViewerViewModel.java index 81bd6104..9424a092 100644 --- a/app/src/main/java/awais/instagrabber/viewmodels/CommentsViewerViewModel.java +++ b/app/src/main/java/awais/instagrabber/viewmodels/CommentsViewerViewModel.java @@ -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 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 comments = result.getChildComments();