chore: remove unnecessary suppressions
This commit is contained in:
parent
c51e68fda8
commit
5a12eff24e
4 changed files with 2 additions and 5 deletions
|
@ -142,7 +142,7 @@ fun PackageManager.getPackageInfoCompat(packageName: String, flags: Int): Packag
|
||||||
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||||
getPackageInfo(packageName, PackageInfoFlags.of(flags.toLong()))
|
getPackageInfo(packageName, PackageInfoFlags.of(flags.toLong()))
|
||||||
} else {
|
} else {
|
||||||
@Suppress("DEPRECATION") getPackageInfo(packageName, flags)
|
getPackageInfo(packageName, flags)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ fun PackageManager.getApplicationInfoCompat(packageName: String, flags: Int): Ap
|
||||||
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||||
getApplicationInfo(packageName, ApplicationInfoFlags.of(flags.toLong()))
|
getApplicationInfo(packageName, ApplicationInfoFlags.of(flags.toLong()))
|
||||||
} else {
|
} else {
|
||||||
@Suppress("DEPRECATION") getApplicationInfo(packageName, flags)
|
getApplicationInfo(packageName, flags)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,6 @@ public sealed class FormOrigin(public open val identifier: String) {
|
||||||
ApplicationInfoFlags.of(PackageManager.GET_META_DATA.toLong())
|
ApplicationInfoFlags.of(PackageManager.GET_META_DATA.toLong())
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
@Suppress("DEPRECATION")
|
|
||||||
context.packageManager.getApplicationInfo(identifier, PackageManager.GET_META_DATA)
|
context.packageManager.getApplicationInfo(identifier, PackageManager.GET_META_DATA)
|
||||||
}
|
}
|
||||||
val label = context.packageManager.getApplicationLabel(info)
|
val label = context.packageManager.getApplicationLabel(info)
|
||||||
|
|
|
@ -60,7 +60,6 @@ public fun computeCertificatesHash(context: Context, appPackage: String): String
|
||||||
PackageManager.PackageInfoFlags.of(PackageManager.GET_SIGNING_CERTIFICATES.toLong())
|
PackageManager.PackageInfoFlags.of(PackageManager.GET_SIGNING_CERTIFICATES.toLong())
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
@Suppress("DEPRECATION")
|
|
||||||
context.packageManager.getPackageInfo(appPackage, PackageManager.GET_SIGNING_CERTIFICATES)
|
context.packageManager.getPackageInfo(appPackage, PackageManager.GET_SIGNING_CERTIFICATES)
|
||||||
}
|
}
|
||||||
val signaturesNew =
|
val signaturesNew =
|
||||||
|
|
|
@ -254,7 +254,6 @@ public fun getInstalledBrowsersWithAutofillSupportLevel(
|
||||||
ResolveInfoFlags.of(PackageManager.MATCH_ALL.toLong())
|
ResolveInfoFlags.of(PackageManager.MATCH_ALL.toLong())
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
@Suppress("DEPRECATION")
|
|
||||||
context.packageManager.queryIntentActivities(testWebIntent, PackageManager.MATCH_ALL)
|
context.packageManager.queryIntentActivities(testWebIntent, PackageManager.MATCH_ALL)
|
||||||
}
|
}
|
||||||
return installedBrowsers
|
return installedBrowsers
|
||||||
|
|
Loading…
Reference in a new issue