Merge pull request #126 from ostajic/dev

Version Check Crash Fix When Youtube Is Not Installed At All
This commit is contained in:
Tornike Khintibidze 2020-08-25 07:58:18 +04:00 committed by GitHub
commit f6345c2dd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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)