File tree Expand file tree Collapse file tree
java/com/movtery/zalithlauncher/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ import android.os.Bundle
2626import androidx.activity.compose.setContent
2727import androidx.activity.viewModels
2828import androidx.compose.foundation.layout.Box
29+ import androidx.compose.foundation.layout.fillMaxSize
30+ import androidx.compose.ui.Modifier
2931import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
3032import androidx.lifecycle.lifecycleScope
3133import com.movtery.zalithlauncher.SplashException
@@ -62,8 +64,8 @@ class SplashActivity : BaseComponentActivity(refreshData = false) {
6264 private val backStackViewModel: SplashBackStackViewModel by viewModels()
6365
6466 override fun onCreate (savedInstanceState : Bundle ? ) {
65- super .onCreate(savedInstanceState)
6667 installSplashScreen()
68+ super .onCreate(savedInstanceState)
6769
6870 initUnpackItems()
6971 checkAllTask()
@@ -74,7 +76,9 @@ class SplashActivity : BaseComponentActivity(refreshData = false) {
7476
7577 setContent {
7678 ZalithLauncherTheme {
77- Box {
79+ Box (
80+ modifier = Modifier .fillMaxSize()
81+ ) {
7882 SplashScreen (
7983 startAllTask = { startAllTask() },
8084 unpackItems = unpackItems,
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ import androidx.compose.ui.Alignment
3535import androidx.compose.ui.Modifier
3636import androidx.compose.ui.graphics.Color
3737import androidx.compose.ui.unit.dp
38- import androidx.compose.ui.zIndex
3938import androidx.navigation3.runtime.entryProvider
4039import androidx.navigation3.ui.NavDisplay
4140import com.movtery.zalithlauncher.components.InstallableItem
@@ -54,16 +53,21 @@ fun SplashScreen(
5453 unpackItems : List <InstallableItem >,
5554 screenViewModel : SplashBackStackViewModel
5655) {
57- Column {
56+ Column (
57+ modifier = Modifier .fillMaxSize()
58+ ) {
5859 TopBar (
5960 modifier = Modifier
6061 .fillMaxWidth()
61- .height(40 .dp)
62- .zIndex(10f ),
62+ .height(40 .dp),
6363 color = MaterialTheme .colorScheme.surfaceContainer
6464 )
6565
66- Surface (modifier = Modifier .fillMaxSize().weight(1f )) {
66+ Surface (
67+ modifier = Modifier
68+ .weight(1f )
69+ .fillMaxWidth()
70+ ) {
6771 NavigationUI (
6872 modifier = Modifier
6973 .fillMaxSize()
Original file line number Diff line number Diff line change 44 <item name =" android:windowFullscreen" >true</item >
55 <item name =" android:windowContentOverlay" >@null</item >
66 </style >
7+ <style name =" AppTheme.SplashScreen" parent =" @style/Theme.SplashScreen" >
8+ <item name =" postSplashScreenTheme" >@style/AppTheme.ZalithLauncher</item >
9+ <item name =" windowSplashScreenAnimatedIcon" >@drawable/splash_launcher</item >
10+ <item name =" windowSplashScreenAnimationDuration" >200</item >
11+ <item name =" windowActionBar" >false</item >
12+ <item name =" windowNoTitle" >true</item >
13+ <item name =" android:windowFullscreen" >true</item >
14+ <item name =" android:windowContentOverlay" >@null</item >
15+ </style >
716</resources >
Original file line number Diff line number Diff line change 88 <item name =" postSplashScreenTheme" >@style/AppTheme.ZalithLauncher</item >
99 <item name =" windowSplashScreenAnimatedIcon" >@drawable/splash_launcher</item >
1010 <item name =" windowSplashScreenAnimationDuration" >200</item >
11+ <item name =" windowActionBar" >false</item >
12+ <item name =" windowNoTitle" >true</item >
13+ <item name =" android:windowFullscreen" >true</item >
14+ <item name =" android:windowContentOverlay" >@null</item >
1115 </style >
1216</resources >
You can’t perform that action at this time.
0 commit comments