Fixed NullPointerException on updating preview
This commit is contained in:
parent
3e73ad4f46
commit
03800044cb
1 changed files with 5 additions and 3 deletions
|
@ -55,10 +55,12 @@ public class PreviewFragment extends Fragment implements MarkdownPreviewView {
|
|||
|
||||
@Override
|
||||
public void updatePreview(String html) {
|
||||
if (markdownPreview != null) {
|
||||
markdownPreview.post(() -> {
|
||||
markdownPreview.loadDataWithBaseURL(null, html, "text/html", "UTF-8", null);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
|
|
Loading…
Reference in a new issue