Added fail-safe

pull/210/head
M66B 2 years ago
parent de672d0c05
commit 29688026ad

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

Loading…
Cancel
Save