Fixed animator life cycle

This commit is contained in:
M66B 2022-04-14 19:51:53 +02:00
parent 6a1e81a571
commit f9392d05e7
3 changed files with 3 additions and 3 deletions

View File

@ -279,7 +279,7 @@ public class FragmentAccounts extends FragmentBase {
}
});
animator = Helper.getFabAnimator(fab, this);
animator = Helper.getFabAnimator(fab, getViewLifecycleOwner());
// Initialize
FragmentDialogTheme.setBackground(getContext(), view, false);

View File

@ -180,7 +180,7 @@ public class FragmentIdentities extends FragmentBase {
}
});
animator = Helper.getFabAnimator(fab, this);
animator = Helper.getFabAnimator(fab, getViewLifecycleOwner());
// Initialize
FragmentDialogTheme.setBackground(getContext(), view, false);

View File

@ -547,7 +547,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
fabSearch = view.findViewById(R.id.fabSearch);
fabError = view.findViewById(R.id.fabError);
animator = Helper.getFabAnimator(fabSearch, this);
animator = Helper.getFabAnimator(fabSearch, getViewLifecycleOwner());
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());