From 2f60ed38aa26d598e28c543992f9fd05f6c7ff39 Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Sat, 17 Aug 2019 12:40:14 -0500 Subject: [PATCH] Convert MarkdownEditView to Kotlin --- .../simplemarkdown/view/MarkdownEditView.java | 11 ----------- .../wbrawner/simplemarkdown/view/MarkdownEditView.kt | 10 ++++++++++ 2 files changed, 10 insertions(+), 11 deletions(-) delete mode 100644 app/src/main/java/com/wbrawner/simplemarkdown/view/MarkdownEditView.java create mode 100644 app/src/main/java/com/wbrawner/simplemarkdown/view/MarkdownEditView.kt diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/view/MarkdownEditView.java b/app/src/main/java/com/wbrawner/simplemarkdown/view/MarkdownEditView.java deleted file mode 100644 index cb5ef61..0000000 --- a/app/src/main/java/com/wbrawner/simplemarkdown/view/MarkdownEditView.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.wbrawner.simplemarkdown.view; - -public interface MarkdownEditView { - String getMarkdown(); - void setMarkdown(String markdown); - void setTitle(String title); - - void onFileSaved(boolean success); - - void onFileLoaded(boolean success); -} diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/view/MarkdownEditView.kt b/app/src/main/java/com/wbrawner/simplemarkdown/view/MarkdownEditView.kt new file mode 100644 index 0000000..70fb0e6 --- /dev/null +++ b/app/src/main/java/com/wbrawner/simplemarkdown/view/MarkdownEditView.kt @@ -0,0 +1,10 @@ +package com.wbrawner.simplemarkdown.view + +interface MarkdownEditView { + var markdown: String + fun setTitle(title: String) + + fun onFileSaved(success: Boolean) + + fun onFileLoaded(success: Boolean) +}