|
|
@ -145,10 +145,23 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config), FileChooserDialog. |
|
|
|
postEvent(EventBus.RECREATE, "") |
|
|
|
postEvent(EventBus.RECREATE, "") |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
ReadBookConfig.pageAnim = getPrefInt("lastReadBookPageAnim") |
|
|
|
ReadBookConfig.pageAnim = getPrefInt("lastReadBookPageAnim") |
|
|
|
putPrefInt("colorPrimary", getPrefInt("lastColorPrimary")) |
|
|
|
if (getPrefBoolean("lastIsNightTheme")) { |
|
|
|
putPrefInt("colorAccent", getPrefInt("lastColorAccent")) |
|
|
|
putPrefInt("colorPrimaryNight", getPrefInt("lastColorPrimary")) |
|
|
|
putPrefInt("colorBackground", getPrefInt("lastColorBackground")) |
|
|
|
putPrefInt("colorAccentNight", getPrefInt("lastColorAccent")) |
|
|
|
putPrefInt("colorBottomBackground", getPrefInt("lastColorBottomBackground")) |
|
|
|
putPrefInt("colorBackgroundNight", getPrefInt("lastColorBackground")) |
|
|
|
|
|
|
|
putPrefInt( |
|
|
|
|
|
|
|
"colorBottomBackgroundNight", |
|
|
|
|
|
|
|
getPrefInt("lastColorBottomBackground") |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
putPrefInt("colorPrimary", getPrefInt("lastColorPrimary")) |
|
|
|
|
|
|
|
putPrefInt("colorAccent", getPrefInt("lastColorAccent")) |
|
|
|
|
|
|
|
putPrefInt("colorBackground", getPrefInt("lastColorBackground")) |
|
|
|
|
|
|
|
putPrefInt( |
|
|
|
|
|
|
|
"colorBottomBackground", |
|
|
|
|
|
|
|
getPrefInt("lastColorBottomBackground") |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
AppConfig.isNightTheme = getPrefBoolean("lastIsNightTheme") |
|
|
|
AppConfig.isNightTheme = getPrefBoolean("lastIsNightTheme") |
|
|
|
App.INSTANCE.applyDayNight() |
|
|
|
App.INSTANCE.applyDayNight() |
|
|
|
postEvent(EventBus.RECREATE, "") |
|
|
|
postEvent(EventBus.RECREATE, "") |
|
|
|