mirror of https://github.com/M66B/FairEmail.git
Added fail-safe
This commit is contained in:
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) {
|
||||||
|
try {
|
||||||
abv.getLayoutParams().height = (Integer) anim.getAnimatedValue();
|
abv.getLayoutParams().height = (Integer) anim.getAnimatedValue();
|
||||||
abv.requestLayout();
|
abv.requestLayout();
|
||||||
|
} catch (Throwable ex) {
|
||||||
|
Log.e(ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
abAnimator.setDuration(250L);
|
abAnimator.setDuration(250L);
|
||||||
|
|
Loading…
Reference in New Issue