From 5cddc5f2a1dcedda57887c5d5a66598880a23286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A4=EC=84=9D=EA=B7=9C?= Date: Mon, 25 Mar 2024 15:58:52 +0900 Subject: [PATCH] delete: Remove window insets --- dodam-design-system/build.gradle.kts | 2 +- .../com/b1nd/dodam/dds/theme/DodamTheme.kt | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/dodam-design-system/build.gradle.kts b/dodam-design-system/build.gradle.kts index f88ac45..5f6134e 100644 --- a/dodam-design-system/build.gradle.kts +++ b/dodam-design-system/build.gradle.kts @@ -9,7 +9,7 @@ publishing { register("release") { groupId = "com.b1nd.dodam" artifactId = "dodam-design-system" - version = "0.1.5" + version = "0.1.6" afterEvaluate { from(components["release"]) diff --git a/dodam-design-system/src/main/java/com/b1nd/dodam/dds/theme/DodamTheme.kt b/dodam-design-system/src/main/java/com/b1nd/dodam/dds/theme/DodamTheme.kt index 76917af..9c5107b 100644 --- a/dodam-design-system/src/main/java/com/b1nd/dodam/dds/theme/DodamTheme.kt +++ b/dodam-design-system/src/main/java/com/b1nd/dodam/dds/theme/DodamTheme.kt @@ -1,14 +1,8 @@ package com.b1nd.dodam.dds.theme -import android.app.Activity import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable -import androidx.compose.runtime.SideEffect -import androidx.compose.ui.platform.LocalView -import androidx.core.view.WindowCompat -import androidx.core.view.WindowInsetsCompat -import androidx.core.view.WindowInsetsControllerCompat import com.b1nd.dodam.dds.style.DodamDarkColorScheme import com.b1nd.dodam.dds.style.DodamLightColorScheme import com.b1nd.dodam.dds.style.DodamShapes @@ -19,18 +13,6 @@ fun DodamTheme( darkTheme: Boolean = isSystemInDarkTheme(), content: @Composable () -> Unit, ) { - val view = LocalView.current - if (!view.isInEditMode) { - SideEffect { - val window = (view.context as Activity).window - val windowInsetsController = WindowCompat.getInsetsController(window, window.decorView) - windowInsetsController.apply { - hide(WindowInsetsCompat.Type.systemBars()) - systemBarsBehavior = WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE - } - } - } - MaterialTheme( colorScheme = if (darkTheme) DodamDarkColorScheme else DodamLightColorScheme, typography = DodamTypography,