diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml index 44e0c81ca..8b670aab3 100644 --- a/sample/src/main/AndroidManifest.xml +++ b/sample/src/main/AndroidManifest.xml @@ -34,7 +34,7 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" - android:theme="@android:style/Theme.Material.Light.NoActionBar"> + android:theme="@android:style/Theme.Material.NoActionBar"> diff --git a/sample/src/main/java/com/google/accompanist/sample/MainScreen.kt b/sample/src/main/java/com/google/accompanist/sample/MainScreen.kt index 5c18c12d2..a1358b947 100644 --- a/sample/src/main/java/com/google/accompanist/sample/MainScreen.kt +++ b/sample/src/main/java/com/google/accompanist/sample/MainScreen.kt @@ -21,9 +21,15 @@ import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.WindowInsets +import androidx.compose.foundation.layout.WindowInsetsSides import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.only +import androidx.compose.foundation.layout.safeContentPadding +import androidx.compose.foundation.layout.safeDrawing +import androidx.compose.foundation.layout.safeDrawingPadding import androidx.compose.foundation.layout.systemBars import androidx.compose.foundation.layout.windowInsetsBottomHeight +import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.material3.ExperimentalMaterial3Api @@ -63,6 +69,9 @@ fun MainScreen( onItemClick, modifier = Modifier .fillMaxSize() + .windowInsetsPadding( + WindowInsets.safeDrawing.only(WindowInsetsSides.Horizontal) + ) .nestedScroll(scrollBehavior.nestedScrollConnection) ) } diff --git a/sample/src/main/java/com/google/accompanist/sample/adaptive/DraggableFoldAwareColumnSample.kt b/sample/src/main/java/com/google/accompanist/sample/adaptive/DraggableFoldAwareColumnSample.kt index 925753e25..6d994ee97 100644 --- a/sample/src/main/java/com/google/accompanist/sample/adaptive/DraggableFoldAwareColumnSample.kt +++ b/sample/src/main/java/com/google/accompanist/sample/adaptive/DraggableFoldAwareColumnSample.kt @@ -33,6 +33,7 @@ import androidx.compose.material.MaterialTheme import androidx.compose.material.Text import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.FavoriteBorder +import androidx.compose.material3.Surface import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf @@ -56,7 +57,7 @@ class DraggableFoldAwareColumnSample : ComponentActivity() { super.onCreate(savedInstanceState) setContent { AccompanistSampleTheme { - Box(modifier = Modifier.fillMaxSize()) { + Surface(modifier = Modifier.fillMaxSize()) { DraggableExample(this@DraggableFoldAwareColumnSample) } }