debug("flow", "AccountSummaryFragment.onCreate()");
setHasOptionsMenu(true);
- Data.backgroundTasksRunning.observe(this, this::onBackgroundTaskRunningChanged);
+ Data.backgroundTasksRunning.observe(this.getViewLifecycleOwner(),
+ this::onBackgroundTaskRunningChanged);
}
public void onAttach(@NotNull Context context) {
super.onAttach(context);
manageFabOnScroll();
swiper = mActivity.findViewById(R.id.account_swiper);
- Colors.themeWatch.observe(this, this::themeChanged);
+ Colors.themeWatch.observe(getViewLifecycleOwner(), this::themeChanged);
swiper.setOnRefreshListener(() -> {
debug("ui", "refreshing accounts via swipe");
Data.scheduleTransactionListRetrieval(mActivity);