From a887a5b06af8cb813b88d72c4f1bb652e0ae16ab Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Thu, 15 Aug 2019 18:40:15 -0500 Subject: [PATCH] fixup! Clean up MarkdownFile Kotlin implementation --- .../simplemarkdown/presentation/MarkdownPresenterImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/presentation/MarkdownPresenterImpl.java b/app/src/main/java/com/wbrawner/simplemarkdown/presentation/MarkdownPresenterImpl.java index 1f824f0..f9059a1 100644 --- a/app/src/main/java/com/wbrawner/simplemarkdown/presentation/MarkdownPresenterImpl.java +++ b/app/src/main/java/com/wbrawner/simplemarkdown/presentation/MarkdownPresenterImpl.java @@ -31,7 +31,7 @@ public class MarkdownPresenterImpl implements MarkdownPresenter { public MarkdownPresenterImpl(ErrorHandler errorHandler) { this.errorHandler = errorHandler; synchronized (fileLock) { - this.file = new MarkdownFile(errorHandler); + this.file = new MarkdownFile(); } } @@ -48,7 +48,7 @@ public class MarkdownPresenterImpl implements MarkdownPresenter { boolean replaceCurrentFile ) { Runnable fileLoader = () -> { - MarkdownFile tmpFile = new MarkdownFile(errorHandler); + MarkdownFile tmpFile = new MarkdownFile(); if (tmpFile.load(fileName, in)) { if (listener != null) { String html = generateHTML(tmpFile.getContent()); @@ -84,7 +84,7 @@ public class MarkdownPresenterImpl implements MarkdownPresenter { currentEditView.setTitle(newName); currentEditView.setMarkdown(""); } - file = new MarkdownFile(errorHandler, newName, ""); + file = new MarkdownFile(newName, ""); } }