public void execute(final ReadOnlyCommandMetadata metadata,
final Object context) {
final UiApplication app = UiApplication.getUiApplication();
app.pushModalScreen(new EditMemoScreen(_controller.getMemo(),
false)); // Blocks until edit screen is popped.
app.popScreen(ViewMemoScreen.this); // Now that edit screen is
// popped, pop this view
// screen as well.
}
}));
// Add the menu item to the screen.