Browse Source

Fix posts duplication on profile follow/unfollow

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
07bb2f47f1
  1. 4
      app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java

4
app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java

@ -648,7 +648,7 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
@Override
public void onSuccess(final FriendshipRepoChangeRootResponse result) {
Log.d(TAG, "Unfollow success: " + result);
fetchProfileDetails();
onRefresh();
}
@Override
@ -665,7 +665,7 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
@Override
public void onSuccess(final FriendshipRepoChangeRootResponse result) {
Log.d(TAG, "Follow success: " + result);
fetchProfileDetails();
onRefresh();
}
@Override

Loading…
Cancel
Save