File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
src/main/java/com/wzq/jd/compose/app/ui/theme Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ room {
1818
1919android {
2020 namespace = " com.wzq.jd.compose.app"
21- compileSdk = 34
21+ compileSdk = 35
2222
2323 defaultConfig {
2424 applicationId = " com.wzq.jd.compose.app"
2525 minSdk = 23
26- targetSdk = 34
26+ targetSdk = 35
2727 versionCode = 1
2828 versionName = " 1.0"
2929
Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ import androidx.compose.ui.graphics.Color
1414import androidx.compose.ui.graphics.toArgb
1515import androidx.compose.ui.platform.LocalContext
1616import androidx.compose.ui.platform.LocalView
17+ import androidx.core.view.ViewCompat
1718import androidx.core.view.WindowCompat
19+ import androidx.core.view.WindowInsetsCompat
1820
1921private val DarkColorScheme = darkColorScheme(
2022 primary = Purple80 ,
@@ -59,7 +61,10 @@ fun JetpackDemoTheme(
5961 SideEffect {
6062 val window = (view.context as Activity ).window
6163 WindowCompat .setDecorFitsSystemWindows(window, false )
62- window.statusBarColor = Color .Transparent .toArgb()
64+ // val insetController = WindowCompat.getInsetsController(window, view)
65+ // ViewCompat.setOnApplyWindowInsetsListener(view) { v, insets ->
66+ // WindowInsetsCompat.CONSUMED
67+ // }
6368 WindowCompat .getInsetsController(window, view).isAppearanceLightStatusBars = ! darkTheme
6469 }
6570 }
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ agp = "8.7.1"
44kotlin = " 2.0.21"
55ksp = " 2.0.21-1.0.26"
66
7- core-ktx = " 1.13.1 "
8- lifecycle = " 2.8.6 "
7+ core-ktx = " 1.15.0 "
8+ lifecycle = " 2.8.7 "
99
10- activity-compose = " 1.9.3 "
11- compose-bom = " 2024.10 .00"
12- navigation-compose = " 2.8.3 "
10+ activity-compose = " 1.10.0 "
11+ compose-bom = " 2025.01 .00"
12+ navigation-compose = " 2.8.5 "
1313
1414ktor = " 3.0.0"
1515coil = " 2.7.0"
You can’t perform that action at this time.
0 commit comments