mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-10-04 17:44:34 -04:00
fix: update foreground service type to manifest (#3332)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
1 parent
603276ee0a
commit
f2b4b87944
1 file changed
+1
-2
@@ -381,8 +381,7 @@ class MeshService : Service() {
|
||||
notification,
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||
if (hasLocationPermission()) {
|
||||
ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE or
|
||||
ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION
|
||||
ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST
|
||||
} else {
|
||||
ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user