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() {
@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);

Loading…
Cancel
Save