From 4c698cf2170b1b87bc0842df5ad7aba4e9b4265e Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Wed, 12 Apr 2023 13:12:57 -0300 Subject: [PATCH] feat: make confirm reblog setting consistent on customlocaltimelines Make it so there is also a confirmation to reblog on custom local timelines --- .../android/ui/displayitems/FooterStatusDisplayItem.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/FooterStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/FooterStatusDisplayItem.java index 3c7d14941..149046d32 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/FooterStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/FooterStatusDisplayItem.java @@ -232,8 +232,13 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{ UiUtils.lookupStatus(v.getContext(), item.status, item.accountID, null, status -> { - boost.setSelected(!status.reblogged); - AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setReblogged(status, !status.reblogged, null, r->boostConsumer(v, r)); + if (GlobalUserPreferences.confirmBeforeReblog) { + v.startAnimation(opacityIn); + onBoostLongClick(v); + } else { + boost.setSelected(!status.reblogged); + AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setReblogged(status, !status.reblogged, null, r->boostConsumer(v, r)); + } } ); return;