We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2270522 commit d74fc14Copy full SHA for d74fc14
1 file changed
app/src/main/java/com/tool/tree/ThemeConfig.kt
@@ -12,7 +12,7 @@ class ThemeConfig(private val context: Context) {
12
13
fun setAllowTransparentUI(allow: Boolean) {
14
config.edit { putBoolean("TransparentUI", allow) }
15
- (context as? MainActivity)?.reloadTabs()
+ (context as? AppCompatActivity)?.recreate()
16
}
17
18
fun getAllowNotificationUI(): Boolean {
@@ -21,7 +21,6 @@ class ThemeConfig(private val context: Context) {
21
22
fun setAllowNotificationUI(allow: Boolean) {
23
config.edit { putBoolean("NotificationUI", allow) }
24
25
val appContext = context.applicationContext
26
if (allow) {
27
WakeLockService.startService(appContext)
0 commit comments