import net.ktnx.mobileledger.ui.profiles.ProfileDetailFragment;
import net.ktnx.mobileledger.ui.profiles.ProfilesRecyclerViewAdapter;
import net.ktnx.mobileledger.ui.transaction_list.TransactionListFragment;
+import net.ktnx.mobileledger.ui.transaction_list.TransactionListViewModel;
import net.ktnx.mobileledger.utils.Colors;
import net.ktnx.mobileledger.utils.MLDB;
protected void onStart() {
super.onStart();
- Data.lastUpdateDate.set(null);
updateLastUpdateTextFromDB();
Date lastUpdate = Data.lastUpdateDate.get();
setContentView(R.layout.activity_main);
+ setupProfile();
+
fab = findViewById(R.id.btn_add_transaction);
profileListContainer = findViewById(R.id.nav_profile_list_container);
profileListHeadArrow = findViewById(R.id.nav_profiles_arrow);
intent.putExtra(BUNDLE_SAVED_STATE, bundle);
startActivity(intent);
}
- @Override
- protected void onResume() {
- super.onResume();
- setupProfile();
- }
public void startEditProfileActivity(MobileLedgerProfile profile) {
Intent intent = new Intent(this, ProfileDetailActivity.class);
Bundle args = new Bundle();
updateLastUpdateTextFromDB();
new RefreshDescriptionsTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
+ TransactionListViewModel.scheduleTransactionListReload();
}
else Toast.makeText(this, error, Toast.LENGTH_LONG).show();
}