theme tests
This commit is contained in:
parent
13ed11dcb2
commit
b6ad5f77e2
|
@ -18,6 +18,7 @@
|
|||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:usesCleartextTraffic="true"
|
||||
android:theme="@style/LightTheme.Blue"
|
||||
tools:ignore="UnusedAttribute">
|
||||
|
||||
<activity
|
||||
|
|
|
@ -32,13 +32,11 @@ open class ThemedActivity : AppCompatActivity() {
|
|||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
val theme = pref.getString("theme_mode", "Light")
|
||||
pref = PreferenceManager.getDefaultSharedPreferences(this)
|
||||
currentTheme = pref.getString("theme_mode", "Light").toString()
|
||||
|
||||
//if for some weird reasons we get invalid
|
||||
//theme, recreate activity
|
||||
if (currentTheme != theme)
|
||||
recreate()
|
||||
setFinalTheme(currentTheme)
|
||||
super.onResume()
|
||||
|
||||
//set Task Header color in recents menu for
|
||||
//devices that are not using pie recents
|
||||
|
|
Loading…
Reference in New Issue