From 3599d53c61dee40e61615dc5424738d2f5779155 Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Sat, 20 Aug 2022 23:48:50 +0800 Subject: [PATCH] Disable explicit nulls for JSON serializer (#7824) * Disable explicit nulls for JSON serializer * format to multiple lines --- app/src/main/java/eu/kanade/tachiyomi/AppModule.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/AppModule.kt b/app/src/main/java/eu/kanade/tachiyomi/AppModule.kt index e87db92f0a..e1253c8896 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/AppModule.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/AppModule.kt @@ -77,7 +77,12 @@ class AppModule(val app: Application) : InjektModule { addSingletonFactory { AndroidDatabaseHandler(get(), get()) } - addSingletonFactory { Json { ignoreUnknownKeys = true } } + addSingletonFactory { + Json { + ignoreUnknownKeys = true + explicitNulls = false + } + } addSingletonFactory { PreferencesHelper(app) }