let return the default theme in case of some issue

This commit is contained in:
tibbi 2017-12-06 12:50:48 +01:00
parent 77c99a8e87
commit 5944352001

View file

@ -194,5 +194,5 @@ fun Activity.getThemeId(color: Int = baseConfig.primaryColor) = when (color) {
-13154481 -> R.style.AppTheme_Blue_Grey_800
-14273992 -> R.style.AppTheme_Blue_Grey_900
else -> throw RuntimeException("Unknown theme id $color")
else -> R.style.AppTheme_Orange_700
}