diff --git a/app/src/main/kotlin/de/salomax/currencies/view/BaseActivity.kt b/app/src/main/kotlin/de/salomax/currencies/view/BaseActivity.kt
index a7cc2340..c02e7af7 100644
--- a/app/src/main/kotlin/de/salomax/currencies/view/BaseActivity.kt
+++ b/app/src/main/kotlin/de/salomax/currencies/view/BaseActivity.kt
@@ -1,13 +1,8 @@
package de.salomax.currencies.view
-import android.content.Context
-import android.graphics.Color
-import android.os.Build
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
-import androidx.core.view.WindowInsetsControllerCompat
-import com.google.android.material.color.MaterialColors
import de.salomax.currencies.R
import de.salomax.currencies.repository.Database
@@ -31,21 +26,7 @@ abstract class BaseActivity : AppCompatActivity() {
}
)
- // "transparent" navigation bar
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
- window.navigationBarColor = MaterialColors.getColor(this, R.attr.colorBackground, Color.BLACK)
- WindowInsetsControllerCompat(window, window.decorView).isAppearanceLightNavigationBars = booleanFromAttribute(R.attr.isLightTheme)
- WindowInsetsControllerCompat(window, window.decorView).isAppearanceLightStatusBars = booleanFromAttribute(R.attr.isLightTheme)
- }
-
super.onCreate(savedInstanceState)
}
- private fun Context.booleanFromAttribute(attribute: Int): Boolean {
- val attributes = obtainStyledAttributes(intArrayOf(attribute))
- val dimension = attributes.getBoolean(0, false)
- attributes.recycle()
- return dimension
- }
-
}
\ No newline at end of file
diff --git a/app/src/main/res/values-v27/styles.xml b/app/src/main/res/values-v27/styles.xml
new file mode 100644
index 00000000..4f514269
--- /dev/null
+++ b/app/src/main/res/values-v27/styles.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 834ccc19..b99f70ff 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -3,7 +3,11 @@
-
-