From aaf87a0ded6364e8f2e0506dd9962bf388384583 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Thu, 24 Sep 2020 21:50:04 -0400 Subject: [PATCH] Update ProfileFragment.java --- .../fragments/main/ProfileFragment.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 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 28c62a76..5b181f8c 100644 --- a/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java @@ -543,16 +543,9 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe binding.mainFollowing.setOnClickListener(followingCount > 0 ? followClickListener : null); } - if (profileModel.getPostCount() == 0) { - binding.swipeRefreshLayout.setRefreshing(false); - binding.privatePage1.setImageResource(R.drawable.ic_cancel); - binding.privatePage2.setText(R.string.empty_acc); - binding.privatePage.setVisibility(View.VISIBLE); - } else { - binding.swipeRefreshLayout.setRefreshing(true); - binding.mainPosts.setVisibility(View.VISIBLE); - fetchPosts(); - } + binding.swipeRefreshLayout.setRefreshing(true); + binding.mainPosts.setVisibility(View.VISIBLE); + fetchPosts(); } else { binding.mainFollowers.setClickable(false); binding.mainFollowing.setClickable(false);