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

Commit 243e07e

Browse files
committed
Show changelog even if a repo has an update (Fix #141)
1 parent ddde5b8 commit 243e07e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

app/src/main/java/com/fox2code/mmm/module/ActionButtonType.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,11 @@ public void doAction(Chip button, ModuleHolder moduleHolder) {
9898
.setIcon(R.drawable.ic_baseline_extension_24);
9999
CharSequence desc = moduleInfo.description;
100100
Markwon markwon = null;
101-
if (moduleInfo instanceof LocalModuleInfo) {
102-
LocalModuleInfo localModuleInfo = (LocalModuleInfo) moduleInfo;
103-
if (!localModuleInfo.updateChangeLog.isEmpty()) {
104-
markwon = MainApplication.getINSTANCE().getMarkwon();
105-
// Re-render each time in cse of config changes
106-
desc = markwon.toMarkdown(localModuleInfo.updateChangeLog);
107-
}
101+
LocalModuleInfo localModuleInfo = moduleHolder.moduleInfo;
102+
if (localModuleInfo != null && !localModuleInfo.updateChangeLog.isEmpty()) {
103+
markwon = MainApplication.getINSTANCE().getMarkwon();
104+
// Re-render each time in cse of config changes
105+
desc = markwon.toMarkdown(localModuleInfo.updateChangeLog);
108106
}
109107

110108
if (desc == null || desc.length() == 0) {

0 commit comments

Comments
 (0)