0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-04 18:05:04 +00:00

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

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)