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

Commit ea8911c3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Align Element.isOpaque() with Element.computeValue()" into main

parents 5b24f016 7f4ca82f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -358,7 +358,9 @@ private fun isElementOpaque(
    val toState = element.sceneStates[toScene]

    if (fromState == null && toState == null) {
        error("This should not happen, element $element is neither in $fromScene or $toScene")
        // TODO(b/311600838): Throw an exception instead once layers of disposed elements are not
        // run anymore.
        return true
    }

    val isSharedElement = fromState != null && toState != null