mirror of https://github.com/M66B/FairEmail.git
Cancel animators
This commit is contained in:
parent
0f01041b87
commit
6206194ece
|
@ -1292,8 +1292,11 @@ public class Helper {
|
|||
if (!ftype.isArray()) {
|
||||
if (Animator.class.isAssignableFrom(type)) {
|
||||
Animator animator = (Animator) field.get(instance);
|
||||
if (animator != null)
|
||||
if (animator != null) {
|
||||
if (animator.isStarted())
|
||||
animator.cancel();
|
||||
animator.setTarget(null);
|
||||
}
|
||||
}
|
||||
|
||||
if (Snackbar.class.isAssignableFrom(type)) {
|
||||
|
|
Loading…
Reference in New Issue