mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-08 11:34:07 +08:00
Fixed: Fix NullPointerException when getting spanned markdown like for notification
This commit is contained in:
@@ -191,9 +191,8 @@ public class MarkdownUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Spanned getSpannedMarkdownText(Context context, String string) {
|
public static Spanned getSpannedMarkdownText(Context context, String string) {
|
||||||
|
if (context == null || string == null) return null;
|
||||||
final Markwon markwon = getSpannedMarkwonBuilder(context);
|
final Markwon markwon = getSpannedMarkwonBuilder(context);
|
||||||
|
|
||||||
return markwon.toMarkdown(string);
|
return markwon.toMarkdown(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user