feat: add onClick lookup for remote accounts

This commit is contained in:
LucasGGamerM
2023-04-16 15:31:47 -03:00
parent 7c8698521d
commit 29267dacb4

View File

@@ -267,6 +267,15 @@ public abstract class BaseAccountListFragment extends RecyclerFragment<BaseAccou
@Override @Override
public void onClick(){ public void onClick(){
if(item.account.reloadWhenClicked){
UiUtils.lookupAccount(getContext(), item.account, accountID, null, account -> {
Bundle args=new Bundle();
args.putString("account", accountID);
args.putParcelable("profileAccount", Parcels.wrap(account));
Nav.go(getActivity(), ProfileFragment.class, args);
});
return;
}
Bundle args=new Bundle(); Bundle args=new Bundle();
args.putString("account", accountID); args.putString("account", accountID);
args.putParcelable("profileAccount", Parcels.wrap(item.account)); args.putParcelable("profileAccount", Parcels.wrap(item.account));