From 8205283e46e622c79b55c1e265c545a44db73cea Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Tue, 29 Dec 2020 17:38:49 -0500 Subject: [PATCH] close #477 --- .../fragments/NotificationsViewerFragment.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java b/app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java index 6c255d8a..cd48cd99 100644 --- a/app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/NotificationsViewerFragment.java @@ -136,11 +136,7 @@ public final class NotificationsViewerFragment extends Fragment implements Swipe friendshipService.approve(userId, model.getUserId(), csrfToken, new ServiceCallback() { @Override public void onSuccess(final FriendshipRepoChangeRootResponse result) { - // Log.d(TAG, "onSuccess: " + result); - if (result.getStatus().equals("ok")) { - onRefresh(); - return; - } + onRefresh(); Log.e(TAG, "approve: status was not ok!"); } @@ -180,12 +176,7 @@ public final class NotificationsViewerFragment extends Fragment implements Swipe friendshipService.ignore(userId, model.getUserId(), csrfToken, new ServiceCallback() { @Override public void onSuccess(final FriendshipRepoChangeRootResponse result) { - // Log.d(TAG, "onSuccess: " + result); - if (result.getStatus().equals("ok")) { - onRefresh(); - return; - } - Log.e(TAG, "ignore: status was not ok!"); + onRefresh(); } @Override