mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
fix: Only require FOREGROUND_SERVICE_TYPE_CAMERA when no audio requested
This commit is contained in:
parent
cfec7147fb
commit
dd5344c2a0
@ -111,7 +111,10 @@ class VideoRecorderService :
|
|||||||
NotificationHelper.RECORDER_CHANNEL_NOTIFICATION_ID,
|
NotificationHelper.RECORDER_CHANNEL_NOTIFICATION_ID,
|
||||||
getNotificationHelper().buildStartingNotification(),
|
getNotificationHelper().buildStartingNotification(),
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||||
ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA or ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE
|
if (enableAudio)
|
||||||
|
ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA or ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE
|
||||||
|
else
|
||||||
|
ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA
|
||||||
} else {
|
} else {
|
||||||
0
|
0
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user