mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-12-23 05:16:58 +00:00
Update ProfileFragment.java
This commit is contained in:
parent
cc9a7f87f9
commit
aaf87a0ded
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user