Clear fragment animators

This commit is contained in:
M66B
2022-04-13 10:39:05 +02:00
parent 7e727f8be1
commit a001d0f566
5 changed files with 30 additions and 12 deletions

View File

@@ -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();
}
}