mirror of https://github.com/M66B/FairEmail.git
Added fail-safe
This commit is contained in:
parent
03e4ab828e
commit
103e098347
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue