import static net.ktnx.mobileledger.utils.Logger.debug;
public class AccountSummaryFragment extends MobileLedgerListFragment {
-
public AccountSummaryAdapter modelAdapter;
/*
private MenuItem mShowOnlyStarred;
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");
- mActivity.scheduleTransactionListRetrieval();
+ Data.scheduleTransactionListRetrieval(mActivity);
});
Data.accounts.addObserver(