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:
@@ -441,6 +441,14 @@ public class HeaderStatusDisplayItem extends StatusDisplayItem{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Bundle args=new Bundle();
|
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.putString("account", item.accountID);
|
||||||
args.putParcelable("profileAccount", Parcels.wrap(item.user));
|
args.putParcelable("profileAccount", Parcels.wrap(item.user));
|
||||||
Nav.go(item.parentFragment.getActivity(), ProfileFragment.class, args);
|
Nav.go(item.parentFragment.getActivity(), ProfileFragment.class, args);
|
||||||
|
|||||||
Reference in New Issue
Block a user