Skip to content

Commit

Permalink
Fix inset issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsantos committed Dec 3, 2024
1 parent ed31ff1 commit 9011567
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions composeApp/src/androidMain/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
android:name=".MainActivity"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|layoutDirection|locale|mcc|navigation|smallestScreenSize|touchscreen|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustNothing"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.imePadding
import androidx.compose.foundation.layout.navigationBars
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.itemsIndexed
Expand Down Expand Up @@ -54,9 +55,7 @@ fun ChooseWebsitesScreen(
onEvent: (ChooseWebsitesViewModel.Event) -> Unit,
) {
Column(
modifier = Modifier
.padding(WindowInsets.navigationBars.asPaddingValues())
.background(MaterialTheme.colorScheme.background),
modifier = Modifier.background(MaterialTheme.colorScheme.background),
) {
TopBar(
title = { Text(stringResource(Res.string.Settings_Websites_CustomURL_Title)) },
Expand Down Expand Up @@ -140,6 +139,7 @@ fun ChooseWebsitesScreen(
modifier = Modifier
.align(Alignment.BottomCenter)
.imePadding()
.navigationBarsPadding()
.padding(bottom = 16.dp),
) {
Icon(
Expand Down

0 comments on commit 9011567

Please sign in to comment.