Fix set title on file open
This commit is contained in:
parent
be4099a6f4
commit
f2b97e0f3a
1 changed files with 6 additions and 1 deletions
|
@ -259,7 +259,12 @@ public class MainActivity extends AppCompatActivity
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
presenter.loadMarkdown((File) data.getSerializableExtra(EXTRA_FILE));
|
File markdownFile = (File) data.getSerializableExtra(EXTRA_FILE);
|
||||||
|
presenter.loadMarkdown(markdownFile);
|
||||||
|
String title = markdownFile.getName();
|
||||||
|
if (!title.isEmpty()) {
|
||||||
|
setTitle(title);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case SAVE_FILE_REQUEST:
|
case SAVE_FILE_REQUEST:
|
||||||
if (resultCode != RESULT_OK
|
if (resultCode != RESULT_OK
|
||||||
|
|
Loading…
Reference in a new issue