From 322c68fef999f8e8b856b8176ba045f36a6cd2f1 Mon Sep 17 00:00:00 2001 From: HuanCheng65 <22636177+HuanCheng65@users.noreply.github.com> Date: Fri, 6 Oct 2023 18:06:59 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E9=81=AE=E7=BD=A9=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/huanchengfly/tieba/post/MainActivityV2.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/huanchengfly/tieba/post/MainActivityV2.kt b/app/src/main/java/com/huanchengfly/tieba/post/MainActivityV2.kt index ba4f3d4b..d488a97e 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/MainActivityV2.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/MainActivityV2.kt @@ -7,7 +7,6 @@ import android.content.BroadcastReceiver import android.content.ComponentName import android.content.Context import android.content.Intent -import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.net.Uri import android.os.Build @@ -48,6 +47,7 @@ import androidx.compose.runtime.remember import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.Color import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.IntOffset @@ -252,8 +252,8 @@ class MainActivityV2 : BaseComposeActivity() { override fun onCreate(savedInstanceState: Bundle?) { installSplashScreen() super.onCreate(savedInstanceState) - window.decorView.setBackgroundColor(Color.TRANSPARENT) - window.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT)) + window.decorView.setBackgroundColor(0) + window.setBackgroundDrawable(ColorDrawable(0)) launch { ClientUtils.setActiveTimestamp() } @@ -421,7 +421,8 @@ class MainActivityV2 : BaseComposeActivity() { ModalBottomSheetLayout( bottomSheetNavigator = navigator, sheetShape = RoundedCornerShape(topStart = 12.dp, topEnd = 12.dp), - sheetBackgroundColor = ExtendedTheme.colors.windowBackground + sheetBackgroundColor = ExtendedTheme.colors.windowBackground, + scrimColor = Color.Black.copy(alpha = 0.32f), ) { DestinationsNavHost( navController = navController,