Skip to content

Commit

Permalink
notify subscribers
Browse files Browse the repository at this point in the history
  • Loading branch information
slartus committed Mar 16, 2024
1 parent 88b97b4 commit ff3b7d8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class PermissionsControllerImpl(

val observer = object : LifecycleEventObserver {
override fun onStateChanged(source: LifecycleOwner, event: Lifecycle.Event) {
lifecycleObservers.forEach { observer -> observer.onEvent(observer, event) }
if (event == Lifecycle.Event.ON_DESTROY) {
this@PermissionsControllerImpl.fragmentManagerHolder.value = null
source.lifecycle.removeObserver(this)
Expand Down

0 comments on commit ff3b7d8

Please sign in to comment.