Fix main activity binding crash

This commit is contained in:
Jays2Kings 2021-04-11 17:44:04 -04:00
parent f11740f6a5
commit e93627c9ec

View File

@ -534,7 +534,9 @@ open class MainActivity : BaseActivity<MainActivityBinding>(), DownloadServiceLi
override fun onDestroy() {
super.onDestroy()
DownloadService.removeListener(this)
binding.toolbar.setNavigationOnClickListener(null)
if (isBindingInitialized) {
binding.toolbar.setNavigationOnClickListener(null)
}
}
override fun onBackPressed() {