fix: 部分页面透明主题闪退
This commit is contained in:
parent
8d7a4f8cd6
commit
ae6607cdf1
|
|
@ -222,7 +222,10 @@ object ThemeUtil {
|
||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun isNightMode(theme: String): Boolean {
|
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 {
|
fun isTranslucentTheme(): Boolean {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue