Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wisnukurniawan committed Dec 1, 2024
1 parent ab8725b commit 30b3402
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ dependencies {

// Analytics
implementation platform(libs.google.firebase)
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation 'com.google.firebase:firebase-perf-ktx'
implementation 'com.google.firebase:firebase-crashlytics-ktx'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-perf'
implementation 'com.google.firebase:firebase-crashlytics'
implementation libs.wisnu.foundation.core.analytics
implementation libs.wisnu.foundation.lib.analyticsmanager

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.wisnu.kurniawan.composetodolist.foundation.theme

import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
Expand Down Expand Up @@ -126,9 +127,17 @@ fun Theme(
}
Theme.WALLPAPER -> {
if (isSystemInDarkTheme()) {
dynamicDarkColorScheme(LocalContext.current)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
dynamicDarkColorScheme(LocalContext.current)
} else {
NightColorPalette
}
} else {
dynamicLightColorScheme(LocalContext.current)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
dynamicLightColorScheme(LocalContext.current)
} else {
LightColorPalette
}
}
}
Theme.LIGHT -> LightColorPalette
Expand Down

0 comments on commit 30b3402

Please sign in to comment.