diff --git a/Owl/app/src/main/AndroidManifest.xml b/Owl/app/src/main/AndroidManifest.xml index ce211706dd..d79c99177a 100644 --- a/Owl/app/src/main/AndroidManifest.xml +++ b/Owl/app/src/main/AndroidManifest.xml @@ -28,7 +28,8 @@ + android:exported="true" + android:windowSoftInputMode="adjustResize"> diff --git a/Owl/app/src/main/java/com/example/owl/ui/MainActivity.kt b/Owl/app/src/main/java/com/example/owl/ui/MainActivity.kt index 500556fdb3..88cd5fa525 100644 --- a/Owl/app/src/main/java/com/example/owl/ui/MainActivity.kt +++ b/Owl/app/src/main/java/com/example/owl/ui/MainActivity.kt @@ -18,17 +18,22 @@ package com.example.owl.ui import android.os.Bundle import androidx.activity.ComponentActivity +import androidx.activity.SystemBarStyle import androidx.activity.compose.setContent -import androidx.core.view.WindowCompat +import androidx.activity.enableEdgeToEdge +import androidx.core.content.ContextCompat +import com.example.owl.R class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { + enableEdgeToEdge( + statusBarStyle = SystemBarStyle.dark( + ContextCompat.getColor(this, R.color.immersive_sys_ui) + ) + ) super.onCreate(savedInstanceState) - // This app draws behind the system bars, so we want to handle fitting system windows - WindowCompat.setDecorFitsSystemWindows(window, false) - setContent { OwlApp { finish() } } diff --git a/Owl/app/src/main/java/com/example/owl/ui/onboarding/Onboarding.kt b/Owl/app/src/main/java/com/example/owl/ui/onboarding/Onboarding.kt index 68f73d1fab..efd8fe8539 100644 --- a/Owl/app/src/main/java/com/example/owl/ui/onboarding/Onboarding.kt +++ b/Owl/app/src/main/java/com/example/owl/ui/onboarding/Onboarding.kt @@ -29,7 +29,6 @@ import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height -import androidx.compose.foundation.layout.navigationBarsPadding import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.statusBarsPadding @@ -87,7 +86,6 @@ fun Onboarding(onboardingComplete: () -> Unit) { FloatingActionButton( onClick = onboardingComplete, modifier = Modifier - .navigationBarsPadding() ) { Icon( imageVector = Icons.Rounded.Explore, @@ -97,10 +95,7 @@ fun Onboarding(onboardingComplete: () -> Unit) { } ) { innerPadding -> Column( - modifier = Modifier - .statusBarsPadding() - .navigationBarsPadding() - .padding(innerPadding) + modifier = Modifier.padding(innerPadding) ) { Text( text = stringResource(R.string.choose_topics_that_interest_you), diff --git a/Owl/app/src/main/res/values-v29/color.xml b/Owl/app/src/main/res/values-v29/color.xml deleted file mode 100644 index 223b20c43d..0000000000 --- a/Owl/app/src/main/res/values-v29/color.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - @android:color/transparent - - diff --git a/Owl/app/src/main/res/values/color.xml b/Owl/app/src/main/res/values/color.xml index 57a447fe9e..78d3871dde 100644 --- a/Owl/app/src/main/res/values/color.xml +++ b/Owl/app/src/main/res/values/color.xml @@ -13,8 +13,5 @@ the License. --> - #33000000 - @color/immersive_sys_ui - diff --git a/Owl/app/src/main/res/values/themes.xml b/Owl/app/src/main/res/values/themes.xml index 33ea323956..4c4900ba87 100644 --- a/Owl/app/src/main/res/values/themes.xml +++ b/Owl/app/src/main/res/values/themes.xml @@ -13,14 +13,6 @@ the License. --> - - - +