From ae1fa4df980562254388ff969a5d959f488f313d Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sat, 23 May 2026 23:35:37 -0400 Subject: [PATCH] fix(android): explicit type param on json.encodeToString in ResumeController MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Kotlin 2.3 + kotlinx.serialization 1.7 — the reified overload of `Json.encodeToString(value: T)` failed to infer T from the argument's type at the call site (the compiler resolved to the SerializationStrategy + value overload and complained both about the type mismatch and the missing 'value' arg). Specifying `` explicitly resolves to the correct overload. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../java/com/fabledsword/minstrel/player/ResumeController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/fabledsword/minstrel/player/ResumeController.kt b/android/app/src/main/java/com/fabledsword/minstrel/player/ResumeController.kt index f4d48703..8c1076cd 100644 --- a/android/app/src/main/java/com/fabledsword/minstrel/player/ResumeController.kt +++ b/android/app/src/main/java/com/fabledsword/minstrel/player/ResumeController.kt @@ -88,7 +88,7 @@ class ResumeController @Inject constructor( positionMs = state.positionMs, ) dao.upsert( - CachedResumeStateEntity(json = json.encodeToString(payload)), + CachedResumeStateEntity(json = json.encodeToString(payload)), ) } }