fix(account-card-on-discover-fragment): fix account card progress bar

This commit is contained in:
LucasGGamerM
2023-10-04 08:35:02 -03:00
parent 6f981a1c7d
commit 6778e302b4

View File

@@ -308,6 +308,8 @@ public class DiscoverAccountsFragment extends MastodonRecyclerFragment<DiscoverA
private void setActionProgressVisible(boolean visible){ private void setActionProgressVisible(boolean visible){
actionButton.setTextVisible(!visible); actionButton.setTextVisible(!visible);
actionProgress.setVisibility(visible ? View.VISIBLE : View.GONE); actionProgress.setVisibility(visible ? View.VISIBLE : View.GONE);
if(visible)
actionProgress.setIndeterminateTintList(actionButton.getTextColors());
actionButton.setClickable(!visible); actionButton.setClickable(!visible);
} }
} }