Prevent crash

This commit is contained in:
M66B 2019-09-12 19:17:18 +02:00
parent 9f82f9de8b
commit 1913fb58c5
2 changed files with 16 additions and 12 deletions

View File

@ -55,6 +55,10 @@
<!-- default: #323232 -->
<color name="design_snackbar_background_color" tools:override="true">#222</color>
<color name="white">#ffffffff</color>
<color name="black">#ff000000</color>
<color name="transparent">#00000000</color>
<!-- color picker -->
<color name="red">#F6402C</color>
<color name="pink">#EB1460</color>

View File

@ -38,10 +38,10 @@
<item name="colorActionForegroundDisabled">@color/lightActionForegroundDisabled</item>
<item name="colorActionBackground">@color/lightActionBackground</item>
<item name="colorFabForeground">@android:color/white</item>
<item name="colorFabForeground">@color/white</item>
<item name="colorFabBackground">@color/colorAccent</item>
<item name="colorToastForeground">@android:color/white</item>
<item name="colorToastForeground">@color/white</item>
<item name="colorToastBackground">@color/colorPrimaryDark</item>
<item name="activatableItemBackground">@drawable/activatable_item_background_light</item>
@ -80,10 +80,10 @@
<item name="colorActionForegroundDisabled">@color/darkActionForegroundDisabled</item>
<item name="colorActionBackground">@color/darkActionBackground</item>
<item name="colorFabForeground">@android:color/white</item>
<item name="colorFabForeground">@color/white</item>
<item name="colorFabBackground">@color/colorAccent</item>
<item name="colorToastForeground">@android:color/white</item>
<item name="colorToastForeground">@color/white</item>
<item name="colorToastBackground">@color/colorPrimaryDark</item>
<item name="activatableItemBackground">@drawable/activatable_item_background_dark</item>
@ -102,8 +102,8 @@
<style name="AppThemeBlack" parent="AppThemeDark">
<item name="themeName">black</item>
<item name="android:windowBackground">@android:color/black</item>
<item name="colorDrawerBackground">@android:color/black</item>
<item name="android:windowBackground">@color/black</item>
<item name="colorDrawerBackground">@color/black</item>
</style>
<style name="AppThemeGreyLight" parent="AppThemeLight">
@ -116,7 +116,7 @@
<item name="colorFabBackground">@color/greyAccent</item>
<item name="colorToastForeground">@android:color/white</item>
<item name="colorToastForeground">@color/white</item>
<item name="colorToastBackground">@color/greyAccent</item>
</style>
@ -132,19 +132,19 @@
<item name="colorFabBackground">@color/greyAccentDark</item>
<item name="colorToastForeground">@android:color/white</item>
<item name="colorToastForeground">@color/white</item>
<item name="colorToastBackground">@color/greyAccentDark</item>
</style>
<style name="Theme.AppCompat.Translucent" parent="Theme.AppCompat.NoActionBar">
<item name="android:background">@android:color/transparent</item>
<item name="android:background">@color/transparent</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowBackground">@color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowAnimationStyle">@android:style/Animation</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@color/transparent</item>
<item name="android:statusBarColor">@color/transparent</item>
</style>
<style name="checkboxStyle" parent="Base.Widget.AppCompat.CompoundButton.CheckBox">