Showing TransferMoneyDialog and AddAccountDialog in fullscreen now
This commit is contained in:
parent
c3016b043a
commit
470952ddde
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue