diff --git a/app/src/main/java/com/michatec/radio/helpers/AppThemeHelper.kt b/app/src/main/java/com/michatec/radio/helpers/AppThemeHelper.kt
index b34172a..944331c 100644
--- a/app/src/main/java/com/michatec/radio/helpers/AppThemeHelper.kt
+++ b/app/src/main/java/com/michatec/radio/helpers/AppThemeHelper.kt
@@ -1,11 +1,7 @@
package com.michatec.radio.helpers
import android.content.Context
-import android.content.res.TypedArray
import android.util.Log
-import android.util.TypedValue
-import androidx.annotation.AttrRes
-import androidx.annotation.ColorInt
import androidx.appcompat.app.AppCompatDelegate
import com.michatec.radio.Keys
import com.michatec.radio.R
@@ -19,8 +15,6 @@ object AppThemeHelper {
/* Define log tag */
private val TAG: String = AppThemeHelper::class.java.simpleName
- private val sTypedValue = TypedValue()
-
/* Sets app theme */
fun setTheme(nightModeState: String) {
when (nightModeState) {
@@ -62,14 +56,4 @@ object AppThemeHelper {
else -> context.getString(R.string.pref_theme_selection_mode_device_default)
}
}
-
-
- @ColorInt
- fun getColor(context: Context, @AttrRes resource: Int): Int {
- val a: TypedArray = context.obtainStyledAttributes(sTypedValue.data, intArrayOf(resource))
- val color = a.getColor(0, 0)
- a.recycle()
- return color
- }
-
}
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 5d0eda4..ad059a6 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -141,5 +141,7 @@
https://api.github.com/repos/michatec/Radio/releases/latest
Radio
Icon launcher.
+
+
Loading...