[EventBus] Fix crash when opening EventManualDialog.

This commit is contained in:
Kuba Szczodrzyński 2021-03-25 19:02:23 +01:00
parent d191982da6
commit 1b271bd20e

View File

@ -84,7 +84,7 @@ class EventManualDialog(
if (activity.isFinishing)
return@launch
onShowListener?.invoke(TAG)
EventBus.getDefault().register(this)
EventBus.getDefault().register(this@EventManualDialog)
b = DialogEventManualV2Binding.inflate(activity.layoutInflater)
dialog = MaterialAlertDialogBuilder(activity)
.setTitle(R.string.dialog_event_manual_title)