Skip to content

Commit f2b4b87

Browse files
authored
fix: update foreground service type to manifest (#3332)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
1 parent 603276e commit f2b4b87

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/com/geeksville/mesh/service/MeshService.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,7 @@ class MeshService : Service() {
381381
notification,
382382
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
383383
if (hasLocationPermission()) {
384-
ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE or
385-
ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION
384+
ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST
386385
} else {
387386
ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE
388387
}

0 commit comments

Comments
 (0)