mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00: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:
parent
603276ee0a
commit
f2b4b87944
1 changed files with 1 additions and 2 deletions
|
|
@ -381,8 +381,7 @@ class MeshService : Service() {
|
||||||
notification,
|
notification,
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||||
if (hasLocationPermission()) {
|
if (hasLocationPermission()) {
|
||||||
ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE or
|
ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST
|
||||||
ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION
|
|
||||||
} else {
|
} else {
|
||||||
ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE
|
ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue