mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Previous code was throw IllegalStateException(), so keep the existing error, even if it should never happen, being compliant with UseCheckOrError detekt rule.
This commit is contained in:
+1
-1
@@ -236,7 +236,7 @@ private fun MapView.lifecycleObserver(previousState: MutableState<Lifecycle.Even
|
|||||||
Lifecycle.Event.ON_DESTROY -> {
|
Lifecycle.Event.ON_DESTROY -> {
|
||||||
//handled in onDispose
|
//handled in onDispose
|
||||||
}
|
}
|
||||||
Lifecycle.Event.ON_ANY -> Unit
|
Lifecycle.Event.ON_ANY -> error("ON_ANY should never be used")
|
||||||
}
|
}
|
||||||
previousState.value = event
|
previousState.value = event
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user