diff --git a/play-services-nearby-core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/ExposureDatabase.kt b/play-services-nearby-core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/ExposureDatabase.kt index 74251e21..b0670c5a 100644 --- a/play-services-nearby-core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/ExposureDatabase.kt +++ b/play-services-nearby-core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/ExposureDatabase.kt @@ -649,7 +649,7 @@ class ExposureDatabase private constructor(private val context: Context) : SQLit update(TABLE_TEK, ContentValues().apply { put("rollingPeriod", intervalNumber - key.rollingStartIntervalNumber) }, "rollingStartNumber = ?", arrayOf(key.rollingStartIntervalNumber.toString())) - storeOwnKey(generateIntraDayTemporaryExposureKey(intervalNumber), database) + storeOwnKey(generateCurrentDayTemporaryExposureKey(), database) } database.setTransactionSuccessful() val startRollingNumber = (getDayRollingStartNumber(intervalNumber) - 14 * ROLLING_PERIOD)