mirror of
https://github.com/KokaKiwi/BarInsta
synced 2025-12-11 06:26:31 +00:00
close #477
This commit is contained in:
parent
8ebe8dd0f9
commit
8205283e46
1 changed files with 2 additions and 11 deletions
|
|
@ -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);
|
onRefresh();
|
||||||
if (result.getStatus().equals("ok")) {
|
|
||||||
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);
|
onRefresh();
|
||||||
if (result.getStatus().equals("ok")) {
|
|
||||||
onRefresh();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Log.e(TAG, "ignore: status was not ok!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue