From dbf45f982fd504239551e846004df3d72552116f Mon Sep 17 00:00:00 2001 From: CrissZollo Date: Sun, 1 Feb 2026 23:29:12 +0100 Subject: [PATCH] Add error logging for watch progress data corruption - Added Android Log error logging in parseProgressMap() catch block - Logs exceptions when JSON parsing fails to help diagnose data issues - Prevents silent data loss without notification - Uses "WatchProgressPrefs" tag for easy filtering in logcat This will help identify and diagnose watch progress data corruption issues that were previously failing silently. --- .../java/com/nuvio/tv/data/local/WatchProgressPreferences.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/nuvio/tv/data/local/WatchProgressPreferences.kt b/app/src/main/java/com/nuvio/tv/data/local/WatchProgressPreferences.kt index f8b4ce1f..3ec78613 100644 --- a/app/src/main/java/com/nuvio/tv/data/local/WatchProgressPreferences.kt +++ b/app/src/main/java/com/nuvio/tv/data/local/WatchProgressPreferences.kt @@ -179,6 +179,7 @@ class WatchProgressPreferences @Inject constructor( val type = object : TypeToken>() {}.type gson.fromJson(json, type) ?: emptyMap() } catch (e: Exception) { + android.util.Log.e("WatchProgressPrefs", "Failed to parse progress data", e) emptyMap() } }