fix(custom-local-timelines): Profile lookup now is more robust and doesn't call the the user's instance unless a click happens

This commit is contained in:
LucasGGamerM
2023-02-25 14:27:21 -03:00
parent 5e97adcd3b
commit ed301cafe0

View File

@@ -441,6 +441,14 @@ public class HeaderStatusDisplayItem extends StatusDisplayItem{
return;
}
Bundle args=new Bundle();
if(item.status.reloadWhenClicked){
UiUtils.lookupAccount(v.getContext(), item.status.account, item.accountID, null, account -> {
args.putString("account", item.accountID);
args.putParcelable("profileAccount", Parcels.wrap(account));
Nav.go(item.parentFragment.getActivity(), ProfileFragment.class, args);
});
return;
}
args.putString("account", item.accountID);
args.putParcelable("profileAccount", Parcels.wrap(item.user));
Nav.go(item.parentFragment.getActivity(), ProfileFragment.class, args);