From 594435200126d4e0f005b94d5e3531f511266c9d Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 6 Dec 2017 12:50:48 +0100 Subject: [PATCH] let return the default theme in case of some issue --- .../com/simplemobiletools/commons/extensions/Activity-themes.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity-themes.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity-themes.kt index 2ca57cf20..ebbe46443 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity-themes.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity-themes.kt @@ -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 }