Avoid UninitializedPropertyAccessException
This commit is contained in:
parent
6c325f1185
commit
0f3df9d2e2
1 changed files with 1 additions and 1 deletions
|
@ -675,7 +675,7 @@ open class MessageList :
|
|||
|
||||
override fun dispatchKeyEvent(event: KeyEvent): Boolean {
|
||||
var eventHandled = false
|
||||
if (event.action == KeyEvent.ACTION_DOWN && searchView.isIconified) {
|
||||
if (event.action == KeyEvent.ACTION_DOWN && ::searchView.isInitialized && searchView.isIconified) {
|
||||
eventHandled = onCustomKeyDown(event)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue