fix: crash when opening other people's profiles

This commit is contained in:
LucasGGamerM
2024-03-04 20:42:34 -03:00
parent ec02aed557
commit 75e8d738a4
3 changed files with 4 additions and 12 deletions

View File

@@ -27,7 +27,6 @@ import org.joinmastodon.android.GlobalUserPreferences;
import org.joinmastodon.android.R;
import org.joinmastodon.android.api.requests.accounts.SetAccountFollowed;
import org.joinmastodon.android.api.session.AccountSessionManager;
import org.joinmastodon.android.fragments.ListsFragment;
import org.joinmastodon.android.fragments.AddAccountToListsFragment;
import org.joinmastodon.android.fragments.ProfileFragment;
import org.joinmastodon.android.fragments.report.ReportReasonChoiceFragment;
@@ -333,7 +332,7 @@ public class AccountViewHolder extends BindableViewHolder<AccountViewModel> impl
})
.wrapProgress(fragment.getActivity(), R.string.loading, false)
.exec(accountID);
}else if(id==R.id.add_to_list){
}else if(id==R.id.manage_user_lists){
Bundle args=new Bundle();
args.putString("account", accountID);
args.putParcelable("targetAccount", Parcels.wrap(account));
@@ -426,7 +425,7 @@ public class AccountViewHolder extends BindableViewHolder<AccountViewModel> impl
}else{
blockDomain.setVisible(false);
}
menu.findItem(R.id.add_to_list).setVisible(relationship.following);
menu.findItem(R.id.manage_user_lists).setVisible(relationship.following);
return true;
}