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

Commit a8495320 authored by Lucas Silva's avatar Lucas Silva
Browse files

Disable overscroll scene transition

Fixes: 348619549
Test: no longer able to reproduce issue which occurs if hub is
overscrolled immediately after opening
Flag: com.android.systemui.communal_hub

Change-Id: Id53f8e7d7cdb1c831ee460922aac934c5b4d30c8
parent 50f3273c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInfiniteTransition
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
@@ -137,6 +138,9 @@ val sceneTransitions = transitions {
            fade(Communal.Elements.Grid)
        }
    }
    // Disable horizontal overscroll. If the scene is overscrolled too soon after showing, this
    // can lead to inconsistent KeyguardState changes.
    overscroll(CommunalScenes.Communal, Orientation.Horizontal) {}
}

/**