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

Commit 69d43418 authored by Darrell Shi's avatar Darrell Shi Committed by Android (Google) Code Review
Browse files

Merge "Prevent crash in communal scene transition" into main

parents 18a3447e 8c0b1910
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -118,8 +118,9 @@ val sceneTransitionsV2 = transitions {
        translate(Communal.Elements.Grid, Edge.End)
        if (Flags.gestureBetweenHubAndLockscreenMotion()) {
            distance = UserActionDistance { fromContent, _, _ ->
                val fromContentSize = checkNotNull(fromContent.targetSize())
                fromContentSize.width * 0.5f
                // fromContent size can be null if it hasn't been compose yet, in which case we
                // fall back to 0.
                fromContent.targetSize()?.width?.times(0.5f) ?: 0f
            }
            timestampRange(startMillis = 167, endMillis = 334) { fade(Communal.Elements.StatusBar) }
        } else {