Added add account button to bank credentials section
This commit is contained in:
parent
29bbe298f3
commit
85acd02c36
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
|
@ -54,6 +54,19 @@
|
|||
android:layout_height="wrap_content"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnAddAccount"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dialog_settings_add_account_height"
|
||||
android:gravity="center_vertical|end"
|
||||
android:textAlignment="gravity"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:textAllCaps="false"
|
||||
android:textSize="@dimen/dialog_settings_add_account_text_size"
|
||||
android:textColor="@color/linkColor"
|
||||
android:text="@string/add"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<string name="delete">Löschen</string>
|
||||
|
||||
<string name="search">Suchen</string>
|
||||
<string name="add">Hinzufügen</string>
|
||||
|
||||
<string name="add_account">Konto hinzufügen</string>
|
||||
<string name="settings">Einstellungen</string>
|
||||
|
|
|
@ -174,6 +174,9 @@
|
|||
<dimen name="dialog_enter_atc_buttons_width">120dp</dimen>
|
||||
|
||||
<dimen name="dialog_settings_padding">8dp</dimen>
|
||||
<dimen name="dialog_settings_add_account_height">26dp</dimen>
|
||||
<dimen name="dialog_settings_add_account_margin_top">6dp</dimen>
|
||||
<dimen name="dialog_settings_add_account_text_size">14sp</dimen>
|
||||
<dimen name="dialog_settings_set_app_protection_margin_top">28dp</dimen>
|
||||
<dimen name="dialog_settings_navigate_to_sub_dialog_button_margin_top">18dp</dimen>
|
||||
<dimen name="dialog_settings_navigate_to_sub_dialog_button_height">40dp</dimen>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<string name="delete">Delete</string>
|
||||
|
||||
<string name="search">Search</string>
|
||||
<string name="add">Add</string>
|
||||
|
||||
<string name="add_account">Add account</string>
|
||||
<string name="settings">Settings</string>
|
||||
|
|
Loading…
Reference in New Issue