Added fail-safe

This commit is contained in:
M66B 2023-01-02 18:56:08 +01:00
parent 03e4ab828e
commit 103e098347
1 changed files with 1 additions and 1 deletions

View File

@ -1630,7 +1630,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
JSONObject jasset = jassets.getJSONObject(i);
if (jasset.has("name") && !jasset.isNull("name")) {
String name = jasset.getString("name");
if (name.endsWith(".apk")) {
if (name.endsWith(".apk") && name.contains("github")) {
info.download_url = jasset.optString("browser_download_url");
Log.i("Latest version=" + info.tag_name);
if (BuildConfig.DEBUG)