From 4ad895ab7156cffc1076b85c4162dcb3d0fd9aa6 Mon Sep 17 00:00:00 2001 From: LucasGGamerM <71328265+LucasGGamerM@users.noreply.github.com> Date: Wed, 3 May 2023 08:57:22 -0300 Subject: [PATCH] Revert "fix(custom-local-timelines): fix inconsistent actions" Reverting this due to realization I did it the other way due to it being better --- .../android/ui/displayitems/FooterStatusDisplayItem.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 b6fe70f8a..0af500867 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 @@ -238,7 +238,7 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{ item.status, item.accountID, null, status -> { boost.setSelected(!status.reblogged); - AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setReblogged(status, !item.status.reblogged, null, r->boostConsumer(v, r)); + AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setReblogged(status, !status.reblogged, null, r->boostConsumer(v, r)); } ); return; @@ -265,7 +265,7 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{ item.status, item.accountID, null, status -> { session.getStatusInteractionController() - .setReblogged(status, !item.status.reblogged, visibility, r->boostConsumer(v, r)); + .setReblogged(status, !status.reblogged, visibility, r->boostConsumer(v, r)); boost.setSelected(status.reblogged); dialog.dismiss(); } @@ -353,7 +353,7 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{ item.status, item.accountID, null, status -> { favorite.setSelected(!status.favourited); - AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setFavorited(status, !item.status.favourited, r->{ + AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setFavorited(status, !status.favourited, r->{ if (status.favourited) { v.startAnimation(GlobalUserPreferences.reduceMotion ? opacityIn : animSet); } else { @@ -396,7 +396,7 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{ item.status, item.accountID, null, status -> { bookmark.setSelected(!status.bookmarked); - AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setBookmarked(status, !item.status.bookmarked, r->{ + AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setBookmarked(status, !status.bookmarked, r->{ v.startAnimation(opacityIn); }); }