Skip to content

Commit d74fc14

Browse files
committed
Update
1 parent 2270522 commit d74fc14

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/src/main/java/com/tool/tree/ThemeConfig.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ThemeConfig(private val context: Context) {
1212

1313
fun setAllowTransparentUI(allow: Boolean) {
1414
config.edit { putBoolean("TransparentUI", allow) }
15-
(context as? MainActivity)?.reloadTabs()
15+
(context as? AppCompatActivity)?.recreate()
1616
}
1717

1818
fun getAllowNotificationUI(): Boolean {
@@ -21,7 +21,6 @@ class ThemeConfig(private val context: Context) {
2121

2222
fun setAllowNotificationUI(allow: Boolean) {
2323
config.edit { putBoolean("NotificationUI", allow) }
24-
(context as? MainActivity)?.reloadTabs()
2524
val appContext = context.applicationContext
2625
if (allow) {
2726
WakeLockService.startService(appContext)

0 commit comments

Comments
 (0)