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

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

Merge "Fix renderAuthority being empty after device rotation" into main

parents 65036c8b fdc8ac91
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,7 +30,8 @@ internal fun Element.shouldBeRenderedBy(content: ContentKey): Boolean {
    // the transition is running. If the [renderAuthority.size] is 1 it means that that this element
    // is currently composed only in one nesting level, which means that the render authority
    // is determined by "classic" shared element code.
    return renderAuthority.size == 1 || renderAuthority.first() == content
    return renderAuthority.size > 0 &&
        (renderAuthority.size == 1 || renderAuthority.first() == content)
}

/**