fix: 部分页面透明主题闪退

This commit is contained in:
HuanCheng65 2023-10-04 01:13:30 +08:00
parent 8d7a4f8cd6
commit ae6607cdf1
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
1 changed files with 4 additions and 1 deletions

View File

@ -222,7 +222,10 @@ object ThemeUtil {
@JvmStatic
fun isNightMode(theme: String): Boolean {
return theme.lowercase(Locale.getDefault()).contains("dark")
return theme.lowercase(Locale.getDefault()).contains("dark") && !theme.contains(
THEME_TRANSLUCENT,
ignoreCase = true
)
}
fun isTranslucentTheme(): Boolean {