Skip to content

Commit

Permalink
Fix regressions after rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Feb 11, 2025
1 parent de36b3a commit 5a3b1e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class NotInstalledPkgsSource @Inject constructor(
get() {
return try {
@SuppressLint("DiscouragedPrivateApi")
val privateFlagsField = applicationInfo.javaClass.getDeclaredField("privateFlags").apply {
val privateFlagsField = applicationInfo!!.javaClass.getDeclaredField("privateFlags").apply {
isAccessible = true
}
privateFlagsField.getInt(applicationInfo)
Expand All @@ -147,7 +147,7 @@ class NotInstalledPkgsSource @Inject constructor(
private val PackageInfo.isUninstalled: Boolean
get() = when {
!hasApiLevel(29) -> {
val sourceDir = applicationInfo.sourceDir
val sourceDir = applicationInfo?.sourceDir
try {
sourceDir?.let { !File(it).exists() } ?: true
} catch (e: Exception) {
Expand Down

0 comments on commit 5a3b1e2

Please sign in to comment.