Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5e1edc1 authored by Luca Zuccarini's avatar Luca Zuccarini
Browse files

Catch all exceptions, not just illegal state, when reparenting.

I didn't realize that it can also throw an NPE, and my brain bypassed this information in bug reports. We got there eventually.

Fix: 418628826
Flag: EXEMPT bugfix
Test: atest ActivityTransitionAnimator
Change-Id: I8bfe9f93268032dd68d105fc4c81d5dc130e95c5
parent d1033354
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2362,7 +2362,7 @@ constructor(
                                    }
                                }
                                reparent = true
                            } catch (e: IllegalStateException) {
                            } catch (e: Exception) {
                                Log.e(TAG, "Failed to reparent transition leash: already released")
                                reparent = false
                            }