1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-26 16:47:30 +00:00
This commit is contained in:
Austin Huang 2020-12-29 17:38:49 -05:00
parent 8ebe8dd0f9
commit 8205283e46
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -136,11 +136,7 @@ public final class NotificationsViewerFragment extends Fragment implements Swipe
friendshipService.approve(userId, model.getUserId(), csrfToken, new ServiceCallback<FriendshipRepoChangeRootResponse>() { friendshipService.approve(userId, model.getUserId(), csrfToken, new ServiceCallback<FriendshipRepoChangeRootResponse>() {
@Override @Override
public void onSuccess(final FriendshipRepoChangeRootResponse result) { public void onSuccess(final FriendshipRepoChangeRootResponse result) {
// Log.d(TAG, "onSuccess: " + result);
if (result.getStatus().equals("ok")) {
onRefresh(); onRefresh();
return;
}
Log.e(TAG, "approve: status was not ok!"); 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<FriendshipRepoChangeRootResponse>() { friendshipService.ignore(userId, model.getUserId(), csrfToken, new ServiceCallback<FriendshipRepoChangeRootResponse>() {
@Override @Override
public void onSuccess(final FriendshipRepoChangeRootResponse result) { public void onSuccess(final FriendshipRepoChangeRootResponse result) {
// Log.d(TAG, "onSuccess: " + result);
if (result.getStatus().equals("ok")) {
onRefresh(); onRefresh();
return;
}
Log.e(TAG, "ignore: status was not ok!");
} }
@Override @Override