fix: Installing anime extensions on Android 14+

This commit is contained in:
jmir1 2024-01-10 14:32:55 +01:00
parent 762cf29ff9
commit 0e10b43e06
No known key found for this signature in database
GPG key ID: 7B3B624787A072BD

View file

@ -75,7 +75,7 @@ class PackageInstallerInstallerAnime(private val service: Service) : InstallerAn
val intentSender = PendingIntent.getBroadcast(
service,
activeSession!!.second,
Intent(INSTALL_ACTION),
Intent(INSTALL_ACTION).setPackage(service.packageName),
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) PendingIntent.FLAG_MUTABLE else 0,
).intentSender
session.commit(intentSender)