From 5de88091f6e697f90af7cc43b774c47df928bcfb Mon Sep 17 00:00:00 2001 From: Fox2Code Date: Sun, 6 Feb 2022 02:04:39 +0100 Subject: [PATCH] Beautify Andoridacy code. --- .../fox2code/mmm/androidacy/AndroidacyRepoData.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java b/app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java index b005b03..88041cb 100644 --- a/app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java +++ b/app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java @@ -129,12 +129,12 @@ public class AndroidacyRepoData extends RepoData { jsonObject.optString("zipUrl", "")); repoModule.notesUrl = filterURL( jsonObject.optString("notesUrl", "")); - if (repoModule.zipUrl == null) - repoModule.zipUrl = "https://api.androidacy.com/magisk/info/?module=" + moduleId; - if (repoModule.zipUrl == null) - repoModule.zipUrl = jsonObject.getString("url"); + if (repoModule.zipUrl == null) { + repoModule.zipUrl = // Fallback url in case the API doesn't have zipUrl + "https://api.androidacy.com/magisk/info/?module=" + moduleId; + } if (repoModule.notesUrl == null) { - repoModule.notesUrl = // Fallback url in case the API doesn't return one + repoModule.notesUrl = // Fallback url in case the API doesn't have notesUrl "https://api.androidacy.com/magisk/readme/?module=" + moduleId; } repoModule.qualityText = R.string.module_downloads;