Add workaround for amoled themed preferences

This commit is contained in:
Michael Schättgen 2019-03-28 01:08:44 +01:00
parent a7ac1adb80
commit 59c0ca947d
2 changed files with 8 additions and 1 deletions

View file

@ -48,9 +48,12 @@ public class PreferencesActivity extends AegisActivity {
break;
case DARK:
case AMOLED:
setTheme(R.style.AppTheme_Dark);
break;
case AMOLED:
setTheme(R.style.AppTheme_TrueBlack_Preferences);
break;
}
}
}

View file

@ -76,6 +76,10 @@
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
</style>
<style name="AppTheme.TrueBlack.Preferences" parent="AppTheme.TrueBlack">
<item name="android:windowBackground">@color/background_true_dark</item>
</style>
<style name="AppTheme.Dark.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>