From 470952ddde23c0a1bcd94555cc83f7e258aaca18 Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 23 Oct 2020 00:32:16 +0200 Subject: [PATCH] Showing TransferMoneyDialog and AddAccountDialog in fullscreen now --- .../dankito/banking/ui/android/dialogs/AddAccountDialog.kt | 3 ++- .../banking/ui/android/dialogs/TransferMoneyDialog.kt | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/AddAccountDialog.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/AddAccountDialog.kt index 07909e74..e1cf4aaa 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/AddAccountDialog.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/AddAccountDialog.kt @@ -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) diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/TransferMoneyDialog.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/TransferMoneyDialog.kt index 445ab7c8..c0d90583 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/TransferMoneyDialog.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/dialogs/TransferMoneyDialog.kt @@ -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