Fixed bug with title being underlined after saving

This commit is contained in:
William Brawner 2017-08-29 20:45:13 -06:00 committed by William Brawner
parent b63cef8c1b
commit 6981f8458d

View file

@ -180,7 +180,7 @@ public class MainActivity extends AppCompatActivity
builder.setPositiveButton("OK", (dialog, which) -> { builder.setPositiveButton("OK", (dialog, which) -> {
if (input.getText().length() > 0) { if (input.getText().length() > 0) {
presenter.setFileName(input.getText().toString()); presenter.setFileName(input.getText().toString());
setTitle(input.getText()); setTitle(presenter.getFileName());
if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
String path = getDocsPath() + input.getText(); String path = getDocsPath() + input.getText();
presenter.saveMarkdown(path); presenter.saveMarkdown(path);