diff options
| author | Bill Napier <napier@google.com> | 2010-09-15 14:35:33 -0700 |
|---|---|---|
| committer | Bill Napier <napier@google.com> | 2010-09-15 14:37:58 -0700 |
| commit | 8b0b7af01071bf89a5bc35486c47bdedcde03208 (patch) | |
| tree | a32c12c0e89d83d7531fa4b71cde9f28cb97d601 | |
| parent | a29d8394f1c5fefbae5ef6d266b06b05d7184649 (diff) | |
| download | frameworks_base-8b0b7af01071bf89a5bc35486c47bdedcde03208.zip frameworks_base-8b0b7af01071bf89a5bc35486c47bdedcde03208.tar.gz frameworks_base-8b0b7af01071bf89a5bc35486c47bdedcde03208.tar.bz2 | |
Fix up some issues with the onCreateContextMenu example in the Notepad tutorial.
Change-Id: I8e9329d3b9da507effafb886a33a0a7e6574a7c7
| -rw-r--r-- | docs/html/guide/tutorials/notepad/notepad-ex2.jd | 4 | ||||
| -rw-r--r-- | docs/html/resources/tutorials/notepad/notepad-ex2.jd | 4 |
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 a945a62..854731f 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 289b5fe..499b796 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> |
