mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Cancel animators
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user