Don't try to install if verifyFile fails

This commit is contained in:
ggabr
2026-05-01 06:48:02 +00:00
committed by Aayush Gupta
parent 75ba09af32
commit b1c932b7d6

View File

@@ -192,7 +192,7 @@ class DownloadWorker @AssistedInject constructor(
files.forEach { file -> require(verifyFile(file)) }
} catch (exception: Exception) {
Log.e(TAG, "Failed to verify ${download.packageName}", exception)
onFailure(VerificationFailedException())
return onFailure(VerificationFailedException())
}
Log.i(TAG, "Finished downloading & verifying ${download.packageName}")