mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Clear fragment animators
This commit is contained in:
@@ -211,11 +211,11 @@ public class FragmentIdentities extends FragmentBase {
|
||||
|
||||
if (identities.size() == 0) {
|
||||
fab.setCustomSize(Helper.dp2pixels(context, 2 * 56));
|
||||
if (!animator.isStarted())
|
||||
if (animator != null && !animator.isStarted())
|
||||
animator.start();
|
||||
} else {
|
||||
fab.clearCustomSize();
|
||||
if (animator.isStarted())
|
||||
if (animator != null && animator.isStarted())
|
||||
animator.end();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user