mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
Fixed: Fix NullPointerException when getting spanned markdown like for notification
This commit is contained in:
parent
009c128052
commit
09412da9d7
1 changed files with 1 additions and 2 deletions
|
|
@ -191,9 +191,8 @@ public class MarkdownUtils {
|
|||
}
|
||||
|
||||
public static Spanned getSpannedMarkdownText(Context context, String string) {
|
||||
|
||||
if (context == null || string == null) return null;
|
||||
final Markwon markwon = getSpannedMarkwonBuilder(context);
|
||||
|
||||
return markwon.toMarkdown(string);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue