@@ -38,8 +38,7 @@ public void update(Chip button, ModuleHolder moduleHolder) {
3838 @ Override
3939 public void doAction (Chip button , ModuleHolder moduleHolder ) {
4040 String notesUrl = moduleHolder .repoModule .notesUrl ;
41- if (notesUrl .startsWith ("https://api.androidacy.com/magisk/readme/?module=" ) ||
42- notesUrl .startsWith ("https://www.androidacy.com/" )) {
41+ if (AndroidacyUtil .isAndroidacyLink (notesUrl )) {
4342 IntentHelper .openUrlAndroidacy (button .getContext (), notesUrl , false ,
4443 moduleHolder .repoModule .moduleInfo .name ,
4544 moduleHolder .getMainModuleConfig ());
@@ -85,8 +84,7 @@ public void doAction(Chip button, ModuleHolder moduleHolder) {
8584 String updateZipUrl = moduleHolder .getUpdateZipUrl ();
8685 if (updateZipUrl == null ) return ;
8786 // Androidacy manage the selection between download and install
88- if (updateZipUrl .startsWith ("https://www.androidacy.com/" ) ||
89- updateZipUrl .startsWith ("https://api.androidacy.com/magisk/info/?module=" )) {
87+ if (AndroidacyUtil .isAndroidacyLink (updateZipUrl )) {
9088 IntentHelper .openUrlAndroidacy (
9189 button .getContext (), updateZipUrl , true ,
9290 moduleInfo .name , moduleInfo .config );
@@ -248,6 +246,8 @@ public static int supportIconForUrl(String url) {
248246 icon = R .drawable .ic_baseline_discord_24 ;
249247 } else if (url .startsWith ("https://github.com/" )) {
250248 icon = R .drawable .ic_github ;
249+ } else if (url .startsWith ("https://gitlab.com/" )) {
250+ icon = R .drawable .ic_gitlab ;
251251 } else if (url .startsWith ("https://forum.xda-developers.com/" )) {
252252 icon = R .drawable .ic_xda ;
253253 }
0 commit comments