Health Connect: Restore initial sync start

Removed during debugging and commited by mistake.
This commit is contained in:
José Rebelo
2026-01-06 21:26:12 +00:00
parent 13b2fb9dd1
commit d037be0303
@@ -531,6 +531,12 @@ class HealthConnectUtils {
}
val initialSyncPrefs = context.getSharedPreferences(GBPrefs.HEALTH_CONNECT_SETTINGS, Context.MODE_PRIVATE)
val initialSyncStartTs = initialSyncPrefs.getLong(GBPrefs.HEALTH_CONNECT_INITIAL_SYNC_START_TS, -1L)
if (initialSyncStartTs != -1L) {
CompanionLogger.info("$HC_SYNC_TAG Using initial sync start timestamp for {}({}): {} ({})", gbDevice.aliasOrName, dataType.name, initialSyncStartTs, Instant.ofEpochSecond(initialSyncStartTs))
return Instant.ofEpochSecond(initialSyncStartTs)
}
val firstTs = getFirstSampleTimestamp(deviceCoordinator, gbDevice, db, dataType)
if (firstTs != null) {