mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02: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