mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-06-12 18:51:25 -04:00
add a menu button for opening a different note
This commit is contained in:
@@ -67,6 +67,9 @@ public class MainActivity extends SimpleActivity {
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
switch (item.getItemId()) {
|
||||
case R.id.open_note:
|
||||
displayOpenNoteDialog();
|
||||
return true;
|
||||
case R.id.share:
|
||||
shareText();
|
||||
return true;
|
||||
@@ -111,6 +114,10 @@ public class MainActivity extends SimpleActivity {
|
||||
});
|
||||
}
|
||||
|
||||
private void displayOpenNoteDialog() {
|
||||
|
||||
}
|
||||
|
||||
private void saveText() {
|
||||
final String newText = getCurrentNote();
|
||||
final String oldText = mCurrentNote.getValue();
|
||||
|
||||
Reference in New Issue
Block a user