Skip to content
Snippets Groups Projects
Unverified Commit e9d7e995 authored by Fabian-K's avatar Fabian-K Committed by GitHub
Browse files

- sync "disable tracing" behavior in SettingsResetFragment.kt with...

- sync "disable tracing" behavior in SettingsResetFragment.kt with SettingsTracingFragment.kt (#312)

Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
Co-authored-by: default avatarHee Tatt Ooi <hee.tatt.ooi@sap.com>
Co-authored-by: default avatarJakob Möller <jakob.moeller@sap.com>
parent 284195cb
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ import de.rki.coronawarnapp.ui.main.MainActivity ...@@ -17,6 +17,7 @@ import de.rki.coronawarnapp.ui.main.MainActivity
import de.rki.coronawarnapp.ui.onboarding.OnboardingActivity import de.rki.coronawarnapp.ui.onboarding.OnboardingActivity
import de.rki.coronawarnapp.util.DataRetentionHelper import de.rki.coronawarnapp.util.DataRetentionHelper
import de.rki.coronawarnapp.util.SettingsNavigationHelper import de.rki.coronawarnapp.util.SettingsNavigationHelper
import de.rki.coronawarnapp.worker.BackgroundWorkScheduler
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
...@@ -70,7 +71,10 @@ class SettingsResetFragment : BaseFragment() { ...@@ -70,7 +71,10 @@ class SettingsResetFragment : BaseFragment() {
try { try {
val isTracingEnabled = InternalExposureNotificationClient.asyncIsEnabled() val isTracingEnabled = InternalExposureNotificationClient.asyncIsEnabled()
// only stop tracing if it is currently enabled // only stop tracing if it is currently enabled
if (isTracingEnabled) InternalExposureNotificationClient.asyncStop() if (isTracingEnabled) {
InternalExposureNotificationClient.asyncStop()
BackgroundWorkScheduler.stopWorkScheduler()
}
} catch (apiException: ApiException) { } catch (apiException: ApiException) {
apiException.report( apiException.report(
ExceptionCategory.EXPOSURENOTIFICATION, TAG, null ExceptionCategory.EXPOSURENOTIFICATION, TAG, null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment