Fixed bug with title being underlined after saving

This commit is contained in:
William Brawner 2017-08-29 20:45:13 -06:00
parent d902c10378
commit 68a0fe2b39

View file

@ -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);