summaryrefslogtreecommitdiffstats
path: root/samples/NotePad
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-01-17 12:31:08 -0800
committerDianne Hackborn <hackbod@google.com>2011-01-17 15:27:56 -0800
commit0d11c9c34501a9a9dedee1092fd63af218dc28c8 (patch)
treec68116c481ec679e2ee6bb8acb978993614ca74c /samples/NotePad
parentd8865cc32c917cebf1fc65c8266d939b9a5718a7 (diff)
downloadandroid_development-0d11c9c34501a9a9dedee1092fd63af218dc28c8.tar.gz
android_development-0d11c9c34501a9a9dedee1092fd63af218dc28c8.tar.bz2
android_development-0d11c9c34501a9a9dedee1092fd63af218dc28c8.zip
Follow API changes.
Change-Id: Ieb1df7fc0708f22aae3d851f74ade1343eb44e08
Diffstat (limited to 'samples/NotePad')
-rw-r--r--samples/NotePad/src/com/example/android/notepad/NoteEditor.java2
-rw-r--r--samples/NotePad/src/com/example/android/notepad/NotesList.java1
2 files changed, 1 insertions, 2 deletions
diff --git a/samples/NotePad/src/com/example/android/notepad/NoteEditor.java b/samples/NotePad/src/com/example/android/notepad/NoteEditor.java
index a3b8b38f9..59d6f1290 100644
--- a/samples/NotePad/src/com/example/android/notepad/NoteEditor.java
+++ b/samples/NotePad/src/com/example/android/notepad/NoteEditor.java
@@ -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();
diff --git a/samples/NotePad/src/com/example/android/notepad/NotesList.java b/samples/NotePad/src/com/example/android/notepad/NotesList.java
index 8f0b2cb02..7e91f646c 100644
--- a/samples/NotePad/src/com/example/android/notepad/NotesList.java
+++ b/samples/NotePad/src/com/example/android/notepad/NotesList.java
@@ -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
);