mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-01-23 01:17:32 +01:00
Handle callback when returning early
This commit is contained in:
parent
f2bc5f5baa
commit
42da7aa2fa
@ -86,7 +86,10 @@ class ExposureNotificationServiceImpl(private val context: Context, private val
|
||||
}
|
||||
|
||||
override fun start(params: StartParams) {
|
||||
if (ExposurePreferences(context).enabled) return
|
||||
if (ExposurePreferences(context).enabled) {
|
||||
params.callback.onResult(Status.SUCCESS)
|
||||
return
|
||||
}
|
||||
lifecycleScope.launchWhenStarted {
|
||||
val status = confirmPermission(CONFIRM_ACTION_START)
|
||||
if (status.isSuccess) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user