Skip to content

Commit

Permalink
fix: Lateinit binding for new code dialog, fixes #52
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTimeWalker committed Jan 13, 2023
1 parent a27c8e3 commit 64d4e57
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import xyz.wallpanel.app.databinding.DialogCodeSetBinding

class SettingsCodeView : BaseView {

private var binding: DialogCodeSetBinding = DialogCodeSetBinding.bind(this)
private lateinit var binding: DialogCodeSetBinding
internal var alarmListener: ViewListener? = null

private val delayRunnable = object : Runnable {
Expand Down Expand Up @@ -54,6 +54,7 @@ class SettingsCodeView : BaseView {

override fun onFinishInflate() {
super.onFinishInflate()
binding = DialogCodeSetBinding.bind(this)
binding.codeTitle.text = context.getString(R.string.dialog_enter_code)
}

Expand Down

0 comments on commit 64d4e57

Please sign in to comment.