Beautify Andoridacy code.

pull/27/head
Fox2Code 3 years ago
parent 9759537161
commit 5de88091f6

@ -129,12 +129,12 @@ public class AndroidacyRepoData extends RepoData {
jsonObject.optString("zipUrl", "")); jsonObject.optString("zipUrl", ""));
repoModule.notesUrl = filterURL( repoModule.notesUrl = filterURL(
jsonObject.optString("notesUrl", "")); jsonObject.optString("notesUrl", ""));
if (repoModule.zipUrl == null) if (repoModule.zipUrl == null) {
repoModule.zipUrl = "https://api.androidacy.com/magisk/info/?module=" + moduleId; repoModule.zipUrl = // Fallback url in case the API doesn't have zipUrl
if (repoModule.zipUrl == null) "https://api.androidacy.com/magisk/info/?module=" + moduleId;
repoModule.zipUrl = jsonObject.getString("url"); }
if (repoModule.notesUrl == null) { 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; "https://api.androidacy.com/magisk/readme/?module=" + moduleId;
} }
repoModule.qualityText = R.string.module_downloads; repoModule.qualityText = R.string.module_downloads;

Loading…
Cancel
Save