|
|
|
@ -8,6 +8,7 @@ import com.jayway.jsonpath.JsonPath |
|
|
|
|
import com.jayway.jsonpath.Option |
|
|
|
|
import com.jayway.jsonpath.ParseContext |
|
|
|
|
import io.legado.app.App |
|
|
|
|
import io.legado.app.BuildConfig |
|
|
|
|
import io.legado.app.constant.PreferKey |
|
|
|
|
import io.legado.app.data.entities.* |
|
|
|
|
import io.legado.app.help.LauncherIconHelp |
|
|
|
@ -108,7 +109,6 @@ object Restore { |
|
|
|
|
} |
|
|
|
|
edit.putInt(PreferKey.versionCode, App.INSTANCE.versionCode) |
|
|
|
|
edit.apply() |
|
|
|
|
} |
|
|
|
|
ReadBookConfig.apply { |
|
|
|
|
styleSelect = App.INSTANCE.getPrefInt(PreferKey.readStyleSelect) |
|
|
|
|
shareLayout = App.INSTANCE.getPrefBoolean(PreferKey.shareLayout) |
|
|
|
@ -122,9 +122,12 @@ object Restore { |
|
|
|
|
withContext(Main) { |
|
|
|
|
App.INSTANCE.applyDayNight() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (!BuildConfig.DEBUG) |
|
|
|
|
LauncherIconHelp.changeIcon(App.INSTANCE.getPrefString(PreferKey.launcherIcon)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private inline fun <reified T> fileToListT(path: String, fileName: String): List<T>? { |
|
|
|
|
try { |
|
|
|
|