summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Bill Napier <napier@google.com> 2010-09-23 16:17:11 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-09-23 16:17:11 -0700
commit297bb68d7cb94989b6beb60575d5ba52fd5010cc (patch)
tree310713da641bcedbab14dc7f37426cbc92d87952
parentb723ff009efa5ba9b48191cc5feb30799288a94a (diff)
parent8b0b7af01071bf89a5bc35486c47bdedcde03208 (diff)
Merge "Fix up some issues with the onCreateContextMenu example in the Notepad tutorial."
-rw-r--r--docs/html/guide/tutorials/notepad/notepad-ex2.jd4
-rw-r--r--docs/html/resources/tutorials/notepad/notepad-ex2.jd4
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/html/guide/tutorials/notepad/notepad-ex2.jd b/docs/html/guide/tutorials/notepad/notepad-ex2.jd
index a945a62f7dae..854731fa0dc5 100644
--- a/docs/html/guide/tutorials/notepad/notepad-ex2.jd
+++ b/docs/html/guide/tutorials/notepad/notepad-ex2.jd
@@ -87,8 +87,8 @@ Open the Notepadv2 class.</p>
menu callback used for the options menu. Here, we add just one line, which will add a menu item
to delete a note. Call <code>menu.add()</code> like so:
<pre>
-public boolean onCreateContextMenu(Menu menu, View v
- ContextMenuInfo menuInfo) {
+public void onCreateContextMenu(Menu menu, View v,
+ ContextMenu.ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
menu.add(0, DELETE_ID, 0, R.string.menu_delete);
}</pre>
diff --git a/docs/html/resources/tutorials/notepad/notepad-ex2.jd b/docs/html/resources/tutorials/notepad/notepad-ex2.jd
index 289b5feb186b..499b796c3cd5 100644
--- a/docs/html/resources/tutorials/notepad/notepad-ex2.jd
+++ b/docs/html/resources/tutorials/notepad/notepad-ex2.jd
@@ -87,8 +87,8 @@ Open the Notepadv2 class.</p>
menu callback used for the options menu. Here, we add just one line, which will add a menu item
to delete a note. Call <code>menu.add()</code> like so:
<pre>
-public boolean onCreateContextMenu(Menu menu, View v
- ContextMenuInfo menuInfo) {
+public void onCreateContextMenu(Menu menu, View v,
+ ContextMenu.ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
menu.add(0, DELETE_ID, 0, R.string.menu_delete);
}</pre>