summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserHistoryPage.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-08-05 14:17:53 -0700
committerDianne Hackborn <hackbod@google.com>2010-08-05 14:19:36 -0700
commit80f32627140aefe828ad539f66fc439d1580bae7 (patch)
tree4891f062acddb31dd1d55d8f8b899cc96cb6ffe2 /src/com/android/browser/BrowserHistoryPage.java
parent942fa124f64bcbad24510043b0ffbf54b904ae6d (diff)
downloadpackages_apps_Browser-80f32627140aefe828ad539f66fc439d1580bae7.zip
packages_apps_Browser-80f32627140aefe828ad539f66fc439d1580bae7.tar.gz
packages_apps_Browser-80f32627140aefe828ad539f66fc439d1580bae7.tar.bz2
Fix build.
Change-Id: Ibd26d72bbe94c7de66849310d1cca0b75fb83963
Diffstat (limited to 'src/com/android/browser/BrowserHistoryPage.java')
-rw-r--r--src/com/android/browser/BrowserHistoryPage.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/com/android/browser/BrowserHistoryPage.java b/src/com/android/browser/BrowserHistoryPage.java
index 0281087..b01f7c1 100644
--- a/src/com/android/browser/BrowserHistoryPage.java
+++ b/src/com/android/browser/BrowserHistoryPage.java
@@ -18,6 +18,7 @@ package com.android.browser;
import android.app.Activity;
import android.app.ExpandableListActivity;
+import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
@@ -31,7 +32,6 @@ import android.os.Handler;
import android.os.Message;
import android.os.ServiceManager;
import android.provider.Browser;
-import android.text.IClipboard;
import android.util.Log;
import android.view.ContextMenu;
import android.view.Menu;
@@ -85,14 +85,8 @@ public class BrowserHistoryPage extends ExpandableListActivity {
}
private void copy(CharSequence text) {
- try {
- IClipboard clip = IClipboard.Stub.asInterface(ServiceManager.getService("clipboard"));
- if (clip != null) {
- clip.setClipboardText(text);
- }
- } catch (android.os.RemoteException e) {
- Log.e(LOGTAG, "Copy failed", e);
- }
+ ClipboardManager cm = (ClipboardManager)getSystemService(Context.CLIPBOARD_SERVICE);
+ cm.setText(text);
}
private static final int ADAPTER_CREATED = 1000;