forked from mirrors/Fedilab
Add followed by indicator in profile
This commit is contained in:
parent
5e58f8a481
commit
381ece593c
1 changed files with 5 additions and 0 deletions
|
@ -594,6 +594,11 @@ public class ProfileActivity extends BaseActivity {
|
|||
binding.accountFollow.setContentDescription(getString(R.string.follow_request));
|
||||
doAction = action.UNFOLLOW;
|
||||
}
|
||||
if (relationship.followed_by) {
|
||||
binding.accountFollowedBy.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
binding.accountFollowedBy.setVisibility(View.GONE);
|
||||
}
|
||||
if (relationship.following) {
|
||||
binding.accountFollow.setImageResource(R.drawable.ic_baseline_person_remove_24);
|
||||
binding.accountFollow.setBackgroundTintList(ColorStateList.valueOf(ContextCompat.getColor(ProfileActivity.this, R.color.red_1)));
|
||||
|
|
Loading…
Reference in a new issue