From 8ab16e161fe074bf2db598113e33305565366625 Mon Sep 17 00:00:00 2001 From: ostajic Date: Tue, 25 Aug 2020 05:46:25 +0200 Subject: [PATCH] No Youtube Crash Fix --- .../vanced/manager/core/downloader/VancedDownloadService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/vanced/manager/core/downloader/VancedDownloadService.kt b/app/src/main/java/com/vanced/manager/core/downloader/VancedDownloadService.kt index 31758dd3..0ecbb658 100644 --- a/app/src/main/java/com/vanced/manager/core/downloader/VancedDownloadService.kt +++ b/app/src/main/java/com/vanced/manager/core/downloader/VancedDownloadService.kt @@ -127,7 +127,8 @@ class VancedDownloadService: Service() { private fun downloadStockCheck():Boolean { - return getPkgVerCode(yPkg, packageManager) != vancedVersionCode + + return try {getPkgVerCode(yPkg, packageManager) != vancedVersionCode}catch (e: Exception) {true} } suspend fun getSha256(obj: String) { sha256Val = InternetTools.getJsonString(hashUrl,obj,applicationContext)