Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit db10272

Browse files
committed
Linkify changelog of updatable modules via updateJson. Fix #132
1 parent c3d8213 commit db10272

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/com/fox2code/mmm/manager/LocalModuleInfo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import android.util.Log;
44

5+
import com.fox2code.mmm.markdown.MarkdownUrlLinker;
56
import com.fox2code.mmm.utils.FastException;
67
import com.fox2code.mmm.utils.Http;
78
import com.fox2code.mmm.utils.PropUtils;
@@ -48,6 +49,7 @@ public void checkModuleUpdate() {
4849
this.updateVersion.trim(), this.updateVersionCode);
4950
if (this.updateChangeLog.length() > 1000)
5051
this.updateChangeLog = this.updateChangeLog.substring(0, 1000);
52+
this.updateChangeLog = MarkdownUrlLinker.urlLinkify(this.updateChangeLog);
5153
} catch (Exception e) {
5254
this.updateVersion = null;
5355
this.updateVersionCode = Long.MIN_VALUE;

0 commit comments

Comments
 (0)