Fixed formatting preselected amount
This commit is contained in:
parent
16707aa70a
commit
b571fc2398
|
@ -35,12 +35,15 @@ import net.dankito.banking.bankfinder.BankInfo
|
|||
import net.dankito.utils.android.extensions.asActivity
|
||||
import java.math.BigDecimal
|
||||
import java.text.DecimalFormatSymbols
|
||||
import java.text.NumberFormat
|
||||
import javax.inject.Inject
|
||||
|
||||
|
||||
open class TransferMoneyDialog : DialogFragment() {
|
||||
|
||||
companion object {
|
||||
val AmountFormat = NumberFormat.getCurrencyInstance()
|
||||
|
||||
const val DialogTag = "TransferMoneyDialog"
|
||||
}
|
||||
|
||||
|
@ -199,6 +202,10 @@ open class TransferMoneyDialog : DialogFragment() {
|
|||
|
||||
rootView.edtxtRemitteeBic.setText(data.creditorBic)
|
||||
|
||||
if (data.amount > BigDecimal.ZERO) {
|
||||
rootView.edtxtAmount.setText(AmountFormat.format(data.amount))
|
||||
}
|
||||
|
||||
focusEditTextAccordingToPreselectedValues(rootView, data)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue