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

Commit e9340e62 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Add overscroll effect to the QS scene

This makes swipes to that scene feel better.

Bug: 417444347
Test: Manual, swiped to the QS scene with a big fling
Flag: com.android.systemui.scene_container
Change-Id: Ie3eccc406daf2de14304cc8ff3b21b2ea399393a
parent 2cc3b6d9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.overscroll
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
@@ -311,6 +312,7 @@ private fun ContentScope.QuickSettingsScene(
            horizontalAlignment = Alignment.CenterHorizontally,
            modifier =
                Modifier.fillMaxSize()
                    .overscroll(verticalOverscrollEffect)
                    .padding(
                        top = topPadding.coerceAtLeast(0.dp),
                        bottom = bottomPadding.coerceAtLeast(0.dp),