diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 5682c42f12..f1ef3d390b 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -53,6 +53,7 @@ import android.view.View; import android.view.ViewGroup; import android.view.animation.Animation; import android.view.animation.AnimationUtils; +import android.view.animation.TranslateAnimation; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.CheckBox; @@ -477,7 +478,9 @@ public class FragmentMessages extends FragmentBase { int first = llm.findFirstVisibleItemPosition(); View child = rvMessage.getChildAt(pos - (first < 0 ? 0 : first)); if (child != null) { - Animation bounce = AnimationUtils.loadAnimation(getContext(), R.anim.bounce_top); + TranslateAnimation bounce = new TranslateAnimation( + 0, 0, Helper.dp2pixels(getContext(), 12), 0); + bounce.setDuration(getResources().getInteger(android.R.integer.config_shortAnimTime)); child.startAnimation(bounce); } diff --git a/app/src/main/res/anim/bounce_top.xml b/app/src/main/res/anim/bounce_top.xml deleted file mode 100644 index 60b4690d0d..0000000000 --- a/app/src/main/res/anim/bounce_top.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file