}
});
swiper = mActivity.findViewById(R.id.account_swiper);
- Colors.themeWatch.addObserver((o, arg) -> swiper.setColorSchemeColors(Colors.primary));
- swiper.setColorSchemeColors(Colors.primary);
+ Colors.themeWatch.observe(this, this::themeChanged);
swiper.setOnRefreshListener(() -> {
Log.d("ui", "refreshing accounts via swipe");
mActivity.scheduleTransactionListRetrieval();
Data.accounts.addObserver(
(o, arg) -> mActivity.runOnUiThread(() -> modelAdapter.notifyDataSetChanged()));
- Data.profile.addObserver((o, arg) -> mActivity.runOnUiThread(
- AccountSummaryViewModel::scheduleAccountListReload));
- update_account_table();
}
private void update_account_table() {
if (this.getContext() == null) return;