1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-20 21:27:07 +00:00

Added fail-safe

This commit is contained in:
M66B 2023-01-07 12:11:07 +01:00
parent de672d0c05
commit 29688026ad

View file

@ -852,8 +852,12 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
abAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator anim) {
abv.getLayoutParams().height = (Integer) anim.getAnimatedValue();
abv.requestLayout();
try {
abv.getLayoutParams().height = (Integer) anim.getAnimatedValue();
abv.requestLayout();
} catch (Throwable ex) {
Log.e(ex);
}
}
});
abAnimator.setDuration(250L);