From 07bb2f47f127baa464eb3bd1f17b76000f018a2a Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Sat, 19 Sep 2020 17:06:00 +0900 Subject: [PATCH] Fix posts duplication on profile follow/unfollow --- .../awais/instagrabber/fragments/main/ProfileFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java b/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java index 6e681d3a..0e17a115 100644 --- a/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java +++ b/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