Follow API changes.

Change-Id: Ieb1df7fc0708f22aae3d851f74ade1343eb44e08
This commit is contained in:
Dianne Hackborn
2011-01-17 12:31:08 -08:00
parent d8865cc32c
commit 0d11c9c345
17 changed files with 31 additions and 35 deletions

View File

@@ -470,7 +470,7 @@ public class NoteEditor extends Activity {
String title=null;
// Gets the first item from the clipboard data
ClipData.Item item = clip.getItem(0);
ClipData.Item item = clip.getItemAt(0);
// Tries to get the item's contents as a URI pointing to a note
Uri uri = item.getUri();

View File

@@ -406,7 +406,6 @@ public class NotesList extends ListActivity {
clipboard.setPrimaryClip(ClipData.newUri( // new clipboard item holding a URI
getContentResolver(), // resolver to retrieve URI info
"Note", // label for the clip
null, // icon for the clip
noteUri) // the URI
);