Fix compatibility with Android 14
This commit is contained in:
1 parent
58bd31d6b7
commit
3ccf4d6def
3 files changed
+20
-15
No files matched your search
@@ -235,10 +235,10 @@ class BoxService(
|
||||
status.value = Status.Starting
|
||||
|
||||
if (!receiverRegistered) {
|
||||
service.registerReceiver(receiver, IntentFilter().apply {
|
||||
ContextCompat.registerReceiver(service, receiver, IntentFilter().apply {
|
||||
addAction(Action.SERVICE_CLOSE)
|
||||
addAction(Action.SERVICE_RELOAD)
|
||||
})
|
||||
}, ContextCompat.RECEIVER_NOT_EXPORTED)
|
||||
receiverRegistered = true
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user