feat: only spin favorite button if its a star

This commit is contained in:
LucasGGamerM 2023-10-13 08:21:05 -03:00
parent 045668d67b
commit 767312f71c
1 changed files with 2 additions and 2 deletions

View File

@ -368,7 +368,7 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{
favorite.setSelected(!status.favourited); favorite.setSelected(!status.favourited);
vibrateForAction(favorite, !status.favourited); vibrateForAction(favorite, !status.favourited);
AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setFavorited(status, !status.favourited, r->{ AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setFavorited(status, !status.favourited, r->{
if (status.favourited && !GlobalUserPreferences.reduceMotion) { if (status.favourited && !GlobalUserPreferences.reduceMotion && !GlobalUserPreferences.likeIcon) {
v.startAnimation(spin); v.startAnimation(spin);
} }
UiUtils.opacityIn(v); UiUtils.opacityIn(v);
@ -381,7 +381,7 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{
favorite.setSelected(!item.status.favourited); favorite.setSelected(!item.status.favourited);
vibrateForAction(favorite, !item.status.favourited); vibrateForAction(favorite, !item.status.favourited);
AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setFavorited(item.status, !item.status.favourited, r->{ AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setFavorited(item.status, !item.status.favourited, r->{
if (item.status.favourited && !GlobalUserPreferences.reduceMotion) { if (item.status.favourited && !GlobalUserPreferences.reduceMotion && !GlobalUserPreferences.likeIcon) {
v.startAnimation(spin); v.startAnimation(spin);
} }
UiUtils.opacityIn(v); UiUtils.opacityIn(v);