Data.lastUpdateDate.observe(this, date -> refreshLastUpdateInfo());
Data.lastUpdateTransactionCount.observe(this, date -> refreshLastUpdateInfo());
Data.lastUpdateAccountCount.observe(this, date -> refreshLastUpdateInfo());
+ b.navAccountSummary.setOnClickListener(this::onAccountSummaryClicked);
+ b.navLatestTransactions.setOnClickListener(this::onLatestTransactionsClicked);
}
private void scheduleDataRetrievalIfStale(long lastUpdate) {
long now = new Date().getTime();
<TextView
android:id="@+id/nav_account_summary"
style="@style/nav_button"
- android:onClick="onAccountSummaryClicked"
android:text="@string/account_summary_title"
app:drawableStartCompat="@drawable/ic_home_black_24dp"
/>
<TextView
android:id="@+id/nav_latest_transactions"
style="@style/nav_button"
- android:onClick="onLatestTransactionsClicked"
android:text="@string/nav_transactions_title"
app:drawableStartCompat="@drawable/ic_event_note_black_24dp"
/>