1
0
Fork 0

Merge pull request from chirayudesai/78-fixup

fixup! restore: Skip installing APKs if not allowed by policy
This commit is contained in:
Torsten Grote 2024-05-23 10:05:55 -03:00 committed by GitHub
commit 5184020f2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ val installModule = module {
factory { ApkSplitCompatibilityChecker(get()) }
factory {
ApkRestore(androidContext(), get(), get(), get(), get(), get()) {
androidContext().getSystemService(UserManager::class.java).isAllowedToInstallApks()
androidContext().getSystemService(UserManager::class.java)!!.isAllowedToInstallApks()
}
}
}