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);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user