You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I register in onCreate() , unregister in onDestroy ,when i repeated entry and exit,The UI has not changed,But the log shows that the execution is here LogUtil.e(TAG, "Locked")(It happened after the second entry)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
EventBus.getDefault().register(this)
}
override fun onDestroy() {
super.onDestroy()
EventBus.getDefault().unregister(this)
}
if I register in onResume() , unregister in onPause,It is no problem
override fun onResume() {
super.onResume()
EventBus.getDefault().register(this)
}
override fun onPause() {
super.onPause()
EventBus.getDefault().unregister(this)
}
Eventbus version is 3.2.0 Look forward to your reply
The text was updated successfully, but these errors were encountered:
kcjian
changed the title
Can not refresh ui
Register in onCreate() can not refresh ui
Jul 8, 2020
I will refresh ui when I received this event that send before entering this activity
if I register in onCreate() , unregister in onDestroy ,when i repeated entry and exit,The UI has not changed,But the log shows that the execution is here
LogUtil.e(TAG, "Locked")
(It happened after the second entry)if I register in onResume() , unregister in onPause,It is no problem
Eventbus version is 3.2.0
Look forward to your reply
The text was updated successfully, but these errors were encountered: