Fixed animator life cycle

pull/207/head
M66B 2 years ago
parent 6a1e81a571
commit f9392d05e7

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

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

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

Loading…
Cancel
Save