1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-12-23 05:16:58 +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);
}
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);