Skip to content

Commit 19346b7

Browse files
committed
Update .gitignore and remove status bar color change
This commit updates the `.gitignore` file to exclude release-specific files and removes the explicit setting of the status bar color in `MainActivity.kt`. Key changes: - Added `app/release/app-release.apk`, `app/release/baselineProfiles/*/*.dm`, and `app/release/output-metadata.json` to `.gitignore`. - Removed `window.statusBarColor = Color.Red.toArgb()` from `MainActivity.kt`.
1 parent 10b0a81 commit 19346b7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
.externalNativeBuild
1414
.cxx
1515
local.properties
16+
/app/release/app-release.apk
17+
/app/release/baselineProfiles/0/app-release.dm
18+
/app/release/baselineProfiles/1/app-release.dm
19+
/app/release/output-metadata.json

app/src/main/java/dev/jahidhasanco/diffly/presentation/MainActivity.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import android.os.Bundle
55
import androidx.activity.ComponentActivity
66
import androidx.activity.compose.setContent
77
import androidx.compose.runtime.SideEffect
8-
import androidx.compose.ui.graphics.Color
9-
import androidx.compose.ui.graphics.toArgb
108
import androidx.compose.ui.platform.LocalView
119
import androidx.core.view.WindowCompat
1210
import androidx.core.view.WindowInsetsControllerCompat
@@ -26,7 +24,6 @@ class MainActivity : ComponentActivity() {
2624
SideEffect {
2725
val window = (view.context as Activity).window
2826
WindowCompat.setDecorFitsSystemWindows(window, true)
29-
window.statusBarColor = Color.Red.toArgb()
3027
WindowInsetsControllerCompat(window, view).isAppearanceLightStatusBars = true
3128
}
3229
}

0 commit comments

Comments
 (0)