1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-26 08:37:29 +00:00

Update ProfileFragment.java

This commit is contained in:
Austin Huang 2020-09-24 21:50:04 -04:00 committed by GitHub
parent cc9a7f87f9
commit aaf87a0ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -543,16 +543,9 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
binding.mainFollowing.setOnClickListener(followingCount > 0 ? followClickListener : null); binding.mainFollowing.setOnClickListener(followingCount > 0 ? followClickListener : null);
} }
if (profileModel.getPostCount() == 0) { binding.swipeRefreshLayout.setRefreshing(true);
binding.swipeRefreshLayout.setRefreshing(false); binding.mainPosts.setVisibility(View.VISIBLE);
binding.privatePage1.setImageResource(R.drawable.ic_cancel); fetchPosts();
binding.privatePage2.setText(R.string.empty_acc);
binding.privatePage.setVisibility(View.VISIBLE);
} else {
binding.swipeRefreshLayout.setRefreshing(true);
binding.mainPosts.setVisibility(View.VISIBLE);
fetchPosts();
}
} else { } else {
binding.mainFollowers.setClickable(false); binding.mainFollowers.setClickable(false);
binding.mainFollowing.setClickable(false); binding.mainFollowing.setClickable(false);