Skip to content

Commit

Permalink
ui: hide corrupted message if no installer
Browse files Browse the repository at this point in the history
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
  • Loading branch information
zx2c4 committed Jul 7, 2023
1 parent 0f77af8 commit c362340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/main/java/com/wireguard/android/updater/Updater.kt
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ object Updater {
context.packageManager.getPackageInfo(context.packageName, PackageManager.GET_PERMISSIONS)
} else {
context.packageManager.getPackageInfo(context.packageName, PackageManager.PackageInfoFlags.of(PackageManager.GET_PERMISSIONS.toLong()))
}.requestedPermissions.contains(Manifest.permission.REQUEST_INSTALL_PACKAGES)
}.requestedPermissions.contains(Manifest.permission.REQUEST_INSTALL_PACKAGES) && installer(context).isNotEmpty()
) {
updaterScope.launch {
val update = try {
Expand Down

0 comments on commit c362340

Please sign in to comment.