feat: make confirm reblog setting consistent on customlocaltimelines

Make it so there is also a confirmation to reblog on custom local timelines
This commit is contained in:
LucasGGamerM 2023-04-12 13:12:57 -03:00
parent 05217b7712
commit 4c698cf217
1 changed files with 7 additions and 2 deletions

View File

@ -232,9 +232,14 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{
UiUtils.lookupStatus(v.getContext(), UiUtils.lookupStatus(v.getContext(),
item.status, item.accountID, null, item.status, item.accountID, null,
status -> { status -> {
if (GlobalUserPreferences.confirmBeforeReblog) {
v.startAnimation(opacityIn);
onBoostLongClick(v);
} else {
boost.setSelected(!status.reblogged); boost.setSelected(!status.reblogged);
AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setReblogged(status, !status.reblogged, null, r->boostConsumer(v, r)); AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setReblogged(status, !status.reblogged, null, r->boostConsumer(v, r));
} }
}
); );
return; return;
} }