|
|
|
@ -9,6 +9,7 @@ import androidx.preference.PreferenceFragmentCompat |
|
|
|
|
import io.legado.app.App |
|
|
|
|
import io.legado.app.R |
|
|
|
|
import io.legado.app.constant.EventBus |
|
|
|
|
import io.legado.app.constant.PreferKey |
|
|
|
|
import io.legado.app.help.AppConfig |
|
|
|
|
import io.legado.app.help.LauncherIconHelp |
|
|
|
|
import io.legado.app.lib.dialogs.alert |
|
|
|
@ -47,7 +48,7 @@ class ThemeConfigFragment : PreferenceFragmentCompat(), SharedPreferences.OnShar |
|
|
|
|
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) { |
|
|
|
|
sharedPreferences ?: return |
|
|
|
|
when (key) { |
|
|
|
|
"launcherIcon" -> LauncherIconHelp.changeIcon(getPrefString(key)) |
|
|
|
|
PreferKey.launcherIcon -> LauncherIconHelp.changeIcon(getPrefString(key)) |
|
|
|
|
"transparentStatusBar" -> { |
|
|
|
|
recreateActivities() |
|
|
|
|
} |
|
|
|
|