diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/settings/SettingsDialog.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/settings/SettingsDialog.kt
index 647ede55..946cfeb8 100644
--- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/settings/SettingsDialog.kt
+++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/settings/SettingsDialog.kt
@@ -52,6 +52,8 @@ open class SettingsDialog : SettingsDialogBase() {
banksAdapter.onClickListener = { navigationToBankSettingsDialog(it.bank) }
banksAdapter.itemDropped = { oldPosition, oldItem, newPosition, newItem -> reorderedBanks(oldPosition, oldItem.bank, newPosition, newItem.bank) }
+ btnAddAccount.setOnClickListener { presenter.showAddAccountDialog() }
+
selectUpdateAccountsAfter.periodInMinutes = presenter.appSettings.automaticallyUpdateAccountsAfterMinutes
btnSetAppProtection.setOnClickListener { navigateToProtectAppSettingsDialog() }
@@ -77,7 +79,9 @@ open class SettingsDialog : SettingsDialogBase() {
}
protected open fun updateBanksAdapterItems() {
- banksAdapter.setItems(createBanksAdapterItems())
+ activity?.runOnUiThread {
+ banksAdapter.setItems(createBanksAdapterItems())
+ }
}
diff --git a/ui/BankingAndroidApp/src/main/res/layout/dialog_settings.xml b/ui/BankingAndroidApp/src/main/res/layout/dialog_settings.xml
index 3447c3f4..c8330b86 100644
--- a/ui/BankingAndroidApp/src/main/res/layout/dialog_settings.xml
+++ b/ui/BankingAndroidApp/src/main/res/layout/dialog_settings.xml
@@ -38,7 +38,7 @@
@@ -54,6 +54,19 @@
android:layout_height="wrap_content"
/>
+
+
diff --git a/ui/BankingAndroidApp/src/main/res/values-de/strings.xml b/ui/BankingAndroidApp/src/main/res/values-de/strings.xml
index b9e65f75..cf2c38cd 100644
--- a/ui/BankingAndroidApp/src/main/res/values-de/strings.xml
+++ b/ui/BankingAndroidApp/src/main/res/values-de/strings.xml
@@ -12,6 +12,7 @@
Löschen
Suchen
+ Hinzufügen
Konto hinzufügen
Einstellungen
diff --git a/ui/BankingAndroidApp/src/main/res/values/dimens.xml b/ui/BankingAndroidApp/src/main/res/values/dimens.xml
index 42c81b50..34442999 100644
--- a/ui/BankingAndroidApp/src/main/res/values/dimens.xml
+++ b/ui/BankingAndroidApp/src/main/res/values/dimens.xml
@@ -174,6 +174,9 @@
120dp
8dp
+ 26dp
+ 6dp
+ 14sp
28dp
18dp
40dp
diff --git a/ui/BankingAndroidApp/src/main/res/values/strings.xml b/ui/BankingAndroidApp/src/main/res/values/strings.xml
index 88b2292f..959693f9 100644
--- a/ui/BankingAndroidApp/src/main/res/values/strings.xml
+++ b/ui/BankingAndroidApp/src/main/res/values/strings.xml
@@ -12,6 +12,7 @@
Delete
Search
+ Add
Add account
Settings