summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9662c07)
declarative handlers are deprecated
Data.lastUpdateDate.observe(this, date -> refreshLastUpdateInfo());
Data.lastUpdateTransactionCount.observe(this, date -> refreshLastUpdateInfo());
Data.lastUpdateAccountCount.observe(this, date -> refreshLastUpdateInfo());
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();
}
private void scheduleDataRetrievalIfStale(long lastUpdate) {
long now = new Date().getTime();
<TextView
android:id="@+id/nav_account_summary"
style="@style/nav_button"
<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"
/>
android:text="@string/account_summary_title"
app:drawableStartCompat="@drawable/ic_home_black_24dp"
/>
<TextView
android:id="@+id/nav_latest_transactions"
style="@style/nav_button"
<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"
/>
android:text="@string/nav_transactions_title"
app:drawableStartCompat="@drawable/ic_event_note_black_24dp"
/>