Skip to content

Commit

Permalink
Add SuppressLint to remove the build error
Browse files Browse the repository at this point in the history
  • Loading branch information
S-H-Y-A committed Feb 6, 2022
1 parent 7d6c830 commit 93cdf6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.example.compose

import android.annotation.SuppressLint
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.*
Expand Down Expand Up @@ -64,6 +65,7 @@ private val DarkThemeColors = darkColorScheme(
inverseSurface = md_theme_dark_inverseSurface,
)

@SuppressLint("NewApi")
@Composable
fun KotlinDataStoreTheme(
useDarkTheme: Boolean = isSystemInDarkTheme(),
Expand Down
10 changes: 0 additions & 10 deletions app/src/main/res/values/colors.xml

This file was deleted.

4 changes: 1 addition & 3 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<style name="Theme.KotlinDataStore" parent="android:Theme.Material.Light.NoActionBar">
<item name="android:statusBarColor">@color/purple_700</item>
</style>
<style name="Theme.KotlinDataStore" parent="android:Theme.Material.Light.NoActionBar" />
</resources>

0 comments on commit 93cdf6b

Please sign in to comment.