From 6981f8458dd0bed9d2ec6d3f2e76f2656402d618 Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Tue, 29 Aug 2017 20:45:13 -0600 Subject: [PATCH] Fixed bug with title being underlined after saving --- .../com/wbrawner/simplemarkdown/view/activity/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/view/activity/MainActivity.java b/app/src/main/java/com/wbrawner/simplemarkdown/view/activity/MainActivity.java index 0f1137d..7e55fc0 100644 --- a/app/src/main/java/com/wbrawner/simplemarkdown/view/activity/MainActivity.java +++ b/app/src/main/java/com/wbrawner/simplemarkdown/view/activity/MainActivity.java @@ -180,7 +180,7 @@ public class MainActivity extends AppCompatActivity builder.setPositiveButton("OK", (dialog, which) -> { if (input.getText().length() > 0) { presenter.setFileName(input.getText().toString()); - setTitle(input.getText()); + setTitle(presenter.getFileName()); if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { String path = getDocsPath() + input.getText(); presenter.saveMarkdown(path);