diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-08-26 22:18:14 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-08-26 22:18:14 -0700 |
commit | eb07b178e8efa86756edbb935e43e9658b5da3fb (patch) | |
tree | 98c4056b8c77c8430f3f1c3142a90e2b8d0b28b4 | |
parent | 784b02bfb63c0390c630c4eabd3db9276e2561b6 (diff) | |
download | packages_apps_browser-eb07b178e8efa86756edbb935e43e9658b5da3fb.zip packages_apps_browser-eb07b178e8efa86756edbb935e43e9658b5da3fb.tar.gz packages_apps_browser-eb07b178e8efa86756edbb935e43e9658b5da3fb.tar.bz2 |
Update to follow clipboard API.
Change-Id: I181802a10e921e058d6416a6ab8aa8009dcbbf63
-rw-r--r-- | src/com/android/browser/BrowserBookmarksPage.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/browser/BrowserBookmarksPage.java b/src/com/android/browser/BrowserBookmarksPage.java index 3ef19f3..1bc5b9f 100644 --- a/src/com/android/browser/BrowserBookmarksPage.java +++ b/src/com/android/browser/BrowserBookmarksPage.java @@ -21,7 +21,7 @@ import android.app.AlertDialog; import android.app.Fragment; import android.app.LoaderManager; import android.content.ClipboardManager; -import android.content.ClippedData; +import android.content.ClipData; import android.content.ContentUris; import android.content.ContentValues; import android.content.Context; @@ -458,7 +458,7 @@ public class BrowserBookmarksPage extends Fragment implements View.OnCreateConte private void copy(CharSequence text) { ClipboardManager cm = (ClipboardManager) getActivity().getSystemService( Context.CLIPBOARD_SERVICE); - cm.setPrimaryClip(new ClippedData(null, null, new ClippedData.Item(text))); + cm.setPrimaryClip(ClipData.newRawUri(null, null, Uri.parse(text.toString()))); } /** |