Extracted getFormattedMessageLogForAccounts()
This commit is contained in:
parent
83e8b7b882
commit
0200a274a9
|
@ -53,7 +53,7 @@ open class SendMessageLogDialog : DialogFragment() {
|
|||
}
|
||||
|
||||
protected open fun setupUI(rootView: View) {
|
||||
val messageLog = presenter.getMessageLogForAccounts(presenter.allBanksSortedByDisplayIndex).joinToString("\r\n\r\n")
|
||||
val messageLog = presenter.getFormattedMessageLogForAccounts(presenter.allBanksSortedByDisplayIndex)
|
||||
|
||||
if (messageLog.isBlank()) {
|
||||
rootView.txtvwInfoNoMessageLogEntriesYet.show()
|
||||
|
|
|
@ -782,6 +782,10 @@ open class BankingPresenter(
|
|||
}
|
||||
|
||||
|
||||
open fun getFormattedMessageLogForAccounts(banks: List<TypedBankData>, includeFailedAccountAdditions: Boolean = true): String {
|
||||
return getMessageLogForAccounts(banks, includeFailedAccountAdditions).joinToString("\r\n\r\n")
|
||||
}
|
||||
|
||||
open fun getMessageLogForAccounts(banks: List<TypedBankData>, includeFailedAccountAdditions: Boolean = true): List<String> {
|
||||
val logEntries = mutableListOf<MessageLogEntry>()
|
||||
|
||||
|
|
Loading…
Reference in New Issue