Showing TransferMoneyDialog and AddAccountDialog in fullscreen now

This commit is contained in:
dankito 2020-10-23 00:32:16 +02:00
parent c3016b043a
commit 470952ddde
2 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ open class AddAccountDialog : DialogFragment() {
}
fun show(activity: AppCompatActivity, fullscreen: Boolean = false) {
fun show(activity: AppCompatActivity, fullscreen: Boolean = true) {
val style = if(fullscreen) R.style.FullscreenDialogWithStatusBar else R.style.FloatingDialog
setStyle(STYLE_NORMAL, style)
@ -68,6 +68,7 @@ open class AddAccountDialog : DialogFragment() {
protected open fun setupUI(rootView: View) {
rootView.apply {
initBankListAutocompletion(edtxtBank.actualEditText)
edtxtBank.actualEditText.requestFocus()
edtxtUserName.actualEditText.addTextChangedListener(otherEditTextChangedWatcher)
bankCredentialsPassword.passwordBox.addTextChangedListener(otherEditTextChangedWatcher)

View File

@ -84,12 +84,11 @@ open class TransferMoneyDialog : DialogFragment() {
BankingComponent.component.inject(this)
}
open fun show(activity: AppCompatActivity, fullscreen: Boolean = false) {
open fun show(activity: AppCompatActivity, fullscreen: Boolean = true) {
show(activity, null, fullscreen)
}
open fun show(activity: AppCompatActivity, preselectedValues: TransferMoneyData?, fullscreen: Boolean = false) {
open fun show(activity: AppCompatActivity, preselectedValues: TransferMoneyData?, fullscreen: Boolean = true) {
this.preselectedValues = preselectedValues
val style = if(fullscreen) R.style.FullscreenDialogWithStatusBar else R.style.FloatingDialog