android: catch exceptions when closing IslandWindow

This commit is contained in:
Kavish Devar
2026-04-28 12:04:59 +05:30
parent 37056c6de7
commit b64ff1d09e

View File

@@ -712,8 +712,16 @@ class IslandWindow(private val context: Context) {
} }
isClosing = false isClosing = false
// Make sure all animations are canceled // Make sure all animations are canceled
springAnimation.cancel() try {
flingAnimator.cancel() springAnimation.cancel()
} catch (e: Exception) {
e("IslandWindow", "Error cancelling spring animation $e")
}
try {
flingAnimator.cancel()
} catch (e: Exception) {
e("IslandWindow", "Error cancelling fling animation $e")
}
} }
fun forceClose() { fun forceClose() {