Renamed updateAccountAutomatically to includeInAutomaticAccountsUpdate
This commit is contained in:
parent
dd604fd064
commit
29bbe298f3
|
@ -70,7 +70,7 @@ open class BankAccount(
|
|||
|
||||
override var hideAccount = false
|
||||
|
||||
override var updateAccountAutomatically = true
|
||||
override var includeInAutomaticAccountsUpdate = true
|
||||
|
||||
override var doNotShowStrikingFetchAllTransactionsView = false
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ open class BankAccountEntity(
|
|||
override var countDaysForWhichTransactionsAreKept: Int? = null,
|
||||
override var displayIndex: Int = 0,
|
||||
override var hideAccount: Boolean = false,
|
||||
override var updateAccountAutomatically: Boolean = true,
|
||||
override var includeInAutomaticAccountsUpdate: Boolean = true,
|
||||
override var doNotShowStrikingFetchAllTransactionsView: Boolean = false
|
||||
|
||||
) : IBankAccount<AccountTransactionEntity> {
|
||||
|
|
|
@ -44,10 +44,10 @@ open class BankAccountSettingsDialog : SettingsDialogBase() {
|
|||
|
||||
edtxtBankAccountName.text = account.displayName
|
||||
|
||||
swtchHideAccount.setOnCheckedChangeListener { _, hideAccount -> swtchUpdateAccountAutomatically.isEnabled = hideAccount == false }
|
||||
swtchHideAccount.setOnCheckedChangeListener { _, hideAccount -> swtchIncludeInAutomaticAccountsUpdate.isEnabled = hideAccount == false }
|
||||
|
||||
swtchHideAccount.isChecked = account.hideAccount
|
||||
swtchUpdateAccountAutomatically.isChecked = account.updateAccountAutomatically
|
||||
swtchIncludeInAutomaticAccountsUpdate.isChecked = account.includeInAutomaticAccountsUpdate
|
||||
|
||||
btnShareAccountData.setOnClickListener { shareAccountData() }
|
||||
|
||||
|
@ -110,13 +110,13 @@ open class BankAccountSettingsDialog : SettingsDialogBase() {
|
|||
override val hasUnsavedChanges: Boolean
|
||||
get() = didChange(edtxtBankAccountName, account.displayName)
|
||||
|| swtchHideAccount.isChecked != account.hideAccount
|
||||
|| swtchUpdateAccountAutomatically.isChecked != account.updateAccountAutomatically
|
||||
|| swtchIncludeInAutomaticAccountsUpdate.isChecked != account.includeInAutomaticAccountsUpdate
|
||||
|
||||
override fun saveChanges() {
|
||||
account.userSetDisplayName = edtxtBankAccountName.text
|
||||
|
||||
account.hideAccount = swtchHideAccount.isChecked
|
||||
account.updateAccountAutomatically = swtchUpdateAccountAutomatically.isChecked
|
||||
account.includeInAutomaticAccountsUpdate = swtchIncludeInAutomaticAccountsUpdate.isChecked
|
||||
|
||||
presenter.accountUpdated(account)
|
||||
}
|
||||
|
|
|
@ -76,10 +76,10 @@
|
|||
/>
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/swtchUpdateAccountAutomatically"
|
||||
android:id="@+id/swtchIncludeInAutomaticAccountsUpdate"
|
||||
style="@style/FormSwitchStyle"
|
||||
android:checked="false"
|
||||
android:text="@string/dialog_bank_account_settings_update_automatically"
|
||||
android:text="@string/dialog_bank_account_settings_include_in_automatic_accounts_updates"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -157,7 +157,7 @@
|
|||
|
||||
<string name="dialog_bank_account_settings_account_name">Name</string>
|
||||
<string name="dialog_bank_account_settings_hide_account">Konto ausblenden</string>
|
||||
<string name="dialog_bank_account_settings_update_automatically">Konto automatisch updaten</string>
|
||||
<string name="dialog_bank_account_settings_include_in_automatic_accounts_updates">Bei Kontoaktualisierung einbeziehen</string>
|
||||
<string name="dialog_bank_account_settings_account_data_section_title">Kontodaten</string>
|
||||
<string name="dialog_bank_account_setting_account_holder_name">Kontoinhaber</string>
|
||||
<string name="dialog_bank_account_setting_bank_account_identifier">Kontonummer</string>
|
||||
|
|
|
@ -157,7 +157,7 @@
|
|||
|
||||
<string name="dialog_bank_account_settings_account_name">Name</string>
|
||||
<string name="dialog_bank_account_settings_hide_account">Hide account</string>
|
||||
<string name="dialog_bank_account_settings_update_automatically">Update account automatically</string>
|
||||
<string name="dialog_bank_account_settings_include_in_automatic_accounts_updates">Include in automatic updates</string>
|
||||
<string name="dialog_bank_account_settings_account_data_section_title">Account data</string>
|
||||
<string name="dialog_bank_account_setting_account_holder_name">Account holder name</string>
|
||||
<string name="dialog_bank_account_setting_bank_account_identifier">Account identifier</string>
|
||||
|
|
|
@ -54,7 +54,7 @@ open class BankAccount @JvmOverloads constructor(
|
|||
|
||||
override var hideAccount = false
|
||||
|
||||
override var updateAccountAutomatically = true
|
||||
override var includeInAutomaticAccountsUpdate = true
|
||||
|
||||
override var doNotShowStrikingFetchAllTransactionsView = false
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ interface IBankAccount<TTransaction: IAccountTransaction> : OrderedDisplayable {
|
|||
*
|
||||
* However it still can be updated if navigated to that single account and call update there.
|
||||
*/
|
||||
var updateAccountAutomatically: Boolean
|
||||
var includeInAutomaticAccountsUpdate: Boolean
|
||||
|
||||
/**
|
||||
* If there are still older transactions to fetch, that is [haveAllTransactionsBeenRetrieved] is [false], at a striking place,
|
||||
|
|
|
@ -363,7 +363,7 @@ open class BankingPresenter(
|
|||
}
|
||||
|
||||
protected open fun considerAccountInAutomaticUpdates(account: TypedBankAccount): Boolean {
|
||||
return account.updateAccountAutomatically
|
||||
return account.includeInAutomaticAccountsUpdate
|
||||
&& account.hideAccount == false
|
||||
&& account.bank.wrongCredentialsEntered == false
|
||||
}
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
<attribute name="hideAccount" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
||||
<attribute name="iban" optional="YES" attributeType="String"/>
|
||||
<attribute name="identifier" attributeType="String"/>
|
||||
<attribute name="includeInAutomaticAccountsUpdate" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
|
||||
<attribute name="isAccountTypeSupportedByApplication" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
|
||||
<attribute name="productName" optional="YES" attributeType="String"/>
|
||||
<attribute name="retrievedTransactionsFromOn" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
|
||||
|
@ -65,7 +66,6 @@
|
|||
<attribute name="supportsRetrievingBalance" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
||||
<attribute name="supportsTransferringMoney" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
||||
<attribute name="type" attributeType="String"/>
|
||||
<attribute name="updateAccountAutomatically" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
|
||||
<attribute name="userSetDisplayName" optional="YES" attributeType="String"/>
|
||||
<relationship name="bank" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="PersistedBankData" inverseName="accounts" inverseEntity="PersistedBankData"/>
|
||||
<relationship name="transactions" toMany="YES" deletionRule="Cascade" destinationEntity="PersistedAccountTransaction" inverseName="account" inverseEntity="PersistedAccountTransaction"/>
|
||||
|
|
|
@ -201,7 +201,7 @@ Unfortunately, Bankmeister cannot know whether a bank charges for real-time tran
|
|||
|
||||
"Account holder name" = "Account holder name";
|
||||
"Hide bank account" = "Hide account";
|
||||
"Update bank account automatically" = "Update account automatically";
|
||||
"Include in automatic accounts updates" = "Include in automatic updates";
|
||||
|
||||
"Bank account identifier" = "Account identifier";
|
||||
"Sub account number" = "Sub account number";
|
||||
|
|
|
@ -202,7 +202,7 @@ Ob eine Bank Gebühren für Echtzeitüberweisungen erhebt, kann Bankmeister leid
|
|||
|
||||
"Account holder name" = "Kontoinhaber";
|
||||
"Hide bank account" = "Konto ausblenden";
|
||||
"Update bank account automatically" = "Konto automatisch updaten";
|
||||
"Include in automatic accounts updates" = "Bei Kontoaktualisierung einbeziehen";
|
||||
|
||||
"Bank account identifier" = "Kontonummer";
|
||||
"Sub account number" = "Unterkontenmerkmal";
|
||||
|
|
|
@ -69,7 +69,7 @@ class Mapper {
|
|||
mapped.displayIndex = account.displayIndex
|
||||
|
||||
mapped.hideAccount = account.hideAccount
|
||||
mapped.updateAccountAutomatically = account.updateAccountAutomatically
|
||||
mapped.includeInAutomaticAccountsUpdate = account.includeInAutomaticAccountsUpdate
|
||||
mapped.doNotShowStrikingFetchAllTransactionsView = account.doNotShowStrikingFetchAllTransactionsView
|
||||
|
||||
mapped.bookedTransactions = map(mapped, account.transactions as? Set<PersistedAccountTransaction>)
|
||||
|
@ -111,7 +111,7 @@ class Mapper {
|
|||
mapped.displayIndex = account.displayIndex
|
||||
|
||||
mapped.hideAccount = account.hideAccount
|
||||
mapped.updateAccountAutomatically = account.updateAccountAutomatically
|
||||
mapped.includeInAutomaticAccountsUpdate = account.includeInAutomaticAccountsUpdate
|
||||
mapped.doNotShowStrikingFetchAllTransactionsView = account.doNotShowStrikingFetchAllTransactionsView
|
||||
|
||||
mapped.transactions = NSSet(array: map(mapped, account.bookedTransactions, context))
|
||||
|
|
|
@ -15,7 +15,7 @@ struct BankAccountSettingsDialog: View {
|
|||
|
||||
@State private var hideAccount: Bool
|
||||
|
||||
@State private var updateAccountAutomatically: Bool
|
||||
@State private var includeInAutomaticAccountsUpdate: Bool
|
||||
|
||||
@State private var unsavedChangesMessage: Message? = nil
|
||||
|
||||
|
@ -23,7 +23,7 @@ struct BankAccountSettingsDialog: View {
|
|||
private var hasUnsavedData: Bool {
|
||||
return account.displayName != displayName
|
||||
|| account.hideAccount != hideAccount
|
||||
|| account.updateAccountAutomatically != updateAccountAutomatically
|
||||
|| account.includeInAutomaticAccountsUpdate != includeInAutomaticAccountsUpdate
|
||||
}
|
||||
|
||||
|
||||
|
@ -32,7 +32,7 @@ struct BankAccountSettingsDialog: View {
|
|||
|
||||
_displayName = State(initialValue: account.displayName)
|
||||
_hideAccount = State(initialValue: account.hideAccount)
|
||||
_updateAccountAutomatically = State(initialValue: account.updateAccountAutomatically)
|
||||
_includeInAutomaticAccountsUpdate = State(initialValue: account.includeInAutomaticAccountsUpdate)
|
||||
}
|
||||
|
||||
|
||||
|
@ -43,7 +43,7 @@ struct BankAccountSettingsDialog: View {
|
|||
|
||||
Toggle("Hide bank account", isOn: $hideAccount)
|
||||
|
||||
Toggle("Update bank account automatically", isOn: $updateAccountAutomatically)
|
||||
Toggle("Include in automatic accounts updates", isOn: $includeInAutomaticAccountsUpdate)
|
||||
.disabled(hideAccount)
|
||||
}
|
||||
|
||||
|
@ -159,7 +159,7 @@ struct BankAccountSettingsDialog: View {
|
|||
account.userSetDisplayName = displayName
|
||||
|
||||
account.hideAccount = hideAccount
|
||||
account.updateAccountAutomatically = updateAccountAutomatically
|
||||
account.includeInAutomaticAccountsUpdate = includeInAutomaticAccountsUpdate
|
||||
|
||||
presenter.accountUpdated(account: account)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue