From 195a46361dcff26c8ae1aee2accbc7b26ac306be Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 23 Oct 2020 01:24:02 +0200 Subject: [PATCH] Little refactoring --- .../banking/ui/android/dialogs/TransferMoneyDialog.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 c0d90583..516c1079 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 @@ -99,11 +99,13 @@ open class TransferMoneyDialog : DialogFragment() { override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { - val rootView = inflater.inflate(R.layout.dialog_transfer_money, container, false) + return inflater.inflate(R.layout.dialog_transfer_money, container, false) + } - setupUI(rootView) + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) - return rootView + setupUI(view) } protected open fun setupUI(rootView: View) {