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

Commit 03af9cb7 authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

Add better logs to Element transition error

Add the transition and element key that failed to match.

Test: build and cause the crash.
Bug: 437886576
Flag: com.android.systemui.scene_container
Change-Id: Ibafb64825e175cf787977fc47146cda51ec961c5
parent 75c89664
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1547,9 +1547,10 @@ private fun getTransformationContentKey(
                transition.toContent
            } else {
                throw IllegalStateException(
                    "Ancestor transition is active but no transformation " +
                        "spec was found. The ancestor transition should have only been selected " +
                        "when a transformation for that element and content was defined."
                    "Ancestor transition $transition is active but no transformation for element " +
                        "${element.key} spec was found. The ancestor transition should have only " +
                        "been selected when a transformation for that element and content was " +
                        "defined."
                )
            }
        }