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:
parent
de672d0c05
commit
29688026ad
1 changed files with 6 additions and 2 deletions
|
@ -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…
Reference in a new issue