|
|
@ -122,8 +122,17 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config), FileChooserDialog. |
|
|
|
} |
|
|
|
} |
|
|
|
"recordLog" -> LogUtils.upLevel() |
|
|
|
"recordLog" -> LogUtils.upLevel() |
|
|
|
PreferKey.einkMode -> { |
|
|
|
PreferKey.einkMode -> { |
|
|
|
postEvent(EventBus.RECREATE, "") |
|
|
|
//既然是 E-Ink 模式,为什么不一步到位呢 |
|
|
|
ReadBookConfig.pageAnim = 4 |
|
|
|
if (AppConfig.isEInkMode) { |
|
|
|
|
|
|
|
ReadBookConfig.pageAnim = 4 |
|
|
|
|
|
|
|
putPrefInt("colorPrimary", getCompatColor(R.color.white)) |
|
|
|
|
|
|
|
putPrefInt("colorAccent", getCompatColor(R.color.black)) |
|
|
|
|
|
|
|
putPrefInt("colorBackground", getCompatColor(R.color.white)) |
|
|
|
|
|
|
|
putPrefInt("colorBottomBackground", getCompatColor(R.color.white)) |
|
|
|
|
|
|
|
AppConfig.isNightTheme = false |
|
|
|
|
|
|
|
App.INSTANCE.applyDayNight() |
|
|
|
|
|
|
|
postEvent(EventBus.RECREATE, "") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|