Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Jul 22, 2024
1 parent 3e74922 commit d159e6c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import io.legado.app.service.WebService
import io.legado.app.ui.file.HandleFileContract
import io.legado.app.ui.widget.number.NumberPickerDialog
import io.legado.app.utils.LogUtils
import io.legado.app.utils.getPrefBoolean
import io.legado.app.utils.postEvent
import io.legado.app.utils.putPrefBoolean
import io.legado.app.utils.putPrefString
Expand Down Expand Up @@ -174,6 +175,7 @@ class OtherConfigFragment : PreferenceFragment(),
}

PreferKey.recordLog -> {
AppConfig.recordLog = appCtx.getPrefBoolean(PreferKey.recordLog)
LogUtils.upLevel()
LogUtils.logDeviceInfo()
LiveEventBus.config().enableLogger(AppConfig.recordLog)
Expand Down

0 comments on commit d159e6c

Please sign in to comment.