Merge pull request #92

fix(star-animation): re-enable star animation
This commit is contained in:
LucasGGamerM 2023-02-17 19:40:57 -03:00 committed by GitHub
commit f377dca63c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -313,11 +313,7 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{
favorite.setSelected(!item.status.favourited);
AccountSessionManager.getInstance().getAccount(item.accountID).getStatusInteractionController().setFavorited(item.status, !item.status.favourited, r->{
if (item.status.favourited) {
// if(GlobalUserPreferences.reduceMotion){
v.startAnimation(opacityIn);
// }else{
// v.startAnimation(animSet);
// }
v.startAnimation(GlobalUserPreferences.reduceMotion ? opacityIn : animSet);
} else {
v.startAnimation(opacityIn);
}

View File

@ -64,7 +64,7 @@
android:id="@+id/favorite"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_gravity="center"
android:drawableStart="@drawable/ic_fluent_star_24_selector"
android:drawablePadding="8dp"
android:paddingHorizontal="8dp"