mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-05-04 20:05:18 +00:00
android: catch exceptions when closing IslandWindow
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user