PackageUtil: Suppress deprecation warning for install perm check
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -159,6 +159,7 @@ object PackageUtil {
|
|||||||
return if (isOAndAbove()) {
|
return if (isOAndAbove()) {
|
||||||
context.packageManager.canRequestPackageInstalls()
|
context.packageManager.canRequestPackageInstalls()
|
||||||
} else {
|
} else {
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
val secureResult = Settings.Secure.getInt(
|
val secureResult = Settings.Secure.getInt(
|
||||||
context.contentResolver,
|
context.contentResolver,
|
||||||
Settings.Secure.INSTALL_NON_MARKET_APPS, 0
|
Settings.Secure.INSTALL_NON_MARKET_APPS, 0
|
||||||
|
|||||||
Reference in New Issue
Block a user