diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/LocalData.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/LocalData.kt index 802451cdb4bdd8b994e07a8774a101838a871478..3cbaed4af3455d70d20127fd23f56956c8939692 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/LocalData.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/LocalData.kt @@ -512,7 +512,7 @@ object LocalData { } } - fun inititalTestResultReceivedTimestamp(value: Long) = + fun initialTestResultReceivedTimestamp(value: Long) = getSharedPreferenceInstance().edit(true) { putLong( CoronaWarnApplication.getAppContext() @@ -521,7 +521,7 @@ object LocalData { ) } - fun inititalTestResultReceivedTimestamp(): Long? { + fun initialTestResultReceivedTimestamp(): Long? { val timestamp = getSharedPreferenceInstance().getLong( CoronaWarnApplication.getAppContext() .getString(R.string.preference_initial_result_received_time), diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/SubmissionRepository.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/SubmissionRepository.kt index 424167ff581921dc6d702187f1dc75072e3e60f9..a81018bd088121ed7bc25eca0b133c732ef5e7c7 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/SubmissionRepository.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/SubmissionRepository.kt @@ -40,11 +40,11 @@ object SubmissionRepository { LocalData.isAllowedToSubmitDiagnosisKeys(true) } - val initialTestResultReceivedTimestamp = LocalData.inititalTestResultReceivedTimestamp() + val initialTestResultReceivedTimestamp = LocalData.initialTestResultReceivedTimestamp() if (initialTestResultReceivedTimestamp == null) { val currentTime = System.currentTimeMillis() - LocalData.inititalTestResultReceivedTimestamp(currentTime) + LocalData.initialTestResultReceivedTimestamp(currentTime) testResultReceivedDate.value = Date(currentTime) if (testResult == TestResult.PENDING) { BackgroundWorkScheduler.startWorkScheduler() diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/viewmodel/SubmissionViewModel.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/viewmodel/SubmissionViewModel.kt index 95f2943ede4839da8c22d7c829dc534be427f405..bbcba1dfe57db90ea267ba15d41d3d82461d9409 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/viewmodel/SubmissionViewModel.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/viewmodel/SubmissionViewModel.kt @@ -116,7 +116,7 @@ class SubmissionViewModel : ViewModel() { deleteTestGUID() SubmissionService.deleteRegistrationToken() LocalData.isAllowedToSubmitDiagnosisKeys(false) - LocalData.inititalTestResultReceivedTimestamp(0L) + LocalData.initialTestResultReceivedTimestamp(0L) } private fun executeRequestWithState( diff --git a/Corona-Warn-App/src/test/java/de/rki/coronawarnapp/util/CameraPermissionHelperTest.kt b/Corona-Warn-App/src/test/java/de/rki/coronawarnapp/util/CameraPermissionHelperTest.kt index 954ab825e56cd05d8ee6a99d16ec586f29c98302..57fdbc694143e53341365e5ed99d7e6ce7645bd3 100644 --- a/Corona-Warn-App/src/test/java/de/rki/coronawarnapp/util/CameraPermissionHelperTest.kt +++ b/Corona-Warn-App/src/test/java/de/rki/coronawarnapp/util/CameraPermissionHelperTest.kt @@ -14,7 +14,6 @@ import org.junit.After import org.junit.Before import org.junit.Test - class CameraPermissionHelperTest { @MockK @@ -26,7 +25,6 @@ class CameraPermissionHelperTest { mockkObject(CoronaWarnApplication) } - /** * Test call order is correct. */ @@ -50,4 +48,4 @@ class CameraPermissionHelperTest { fun cleanUp() { unmockkAll() } -} \ No newline at end of file +}