summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-09-17 15:15:46 -0700
committerDianne Hackborn <hackbod@google.com>2009-09-17 18:01:57 -0700
commitf66beeaea7d3654bee280644f4edc6d7215b0ee5 (patch)
tree44cdaad0a9be59bb3ce7c84cb7ebc6a5facf9286 /src
parent909a945031ec5ec372991de1d2ea1718f494ab9c (diff)
downloadpackages_apps_settings-f66beeaea7d3654bee280644f4edc6d7215b0ee5.zip
packages_apps_settings-f66beeaea7d3654bee280644f4edc6d7215b0ee5.tar.gz
packages_apps_settings-f66beeaea7d3654bee280644f4edc6d7215b0ee5.tar.bz2
Follow along with startActivityPendingIntent() change.
Change-Id: I6d804af66deeaf87339eeb548b6a3d2965262f02
Diffstat (limited to 'src')
-rw-r--r--src/com/android/settings/RunningServices.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/settings/RunningServices.java b/src/com/android/settings/RunningServices.java
index 03168d0..a82292a 100644
--- a/src/com/android/settings/RunningServices.java
+++ b/src/com/android/settings/RunningServices.java
@@ -28,6 +28,7 @@ import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
+import android.content.IntentSender;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageItemInfo;
@@ -789,11 +790,11 @@ public class RunningServices extends ListActivity
si.mRunningService.service);
if (pi != null) {
try {
- this.startActivity(pi, null,
+ this.startIntentSender(pi.getIntentSender(), null,
Intent.FLAG_ACTIVITY_NEW_TASK
| Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET,
- Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
- } catch (PendingIntent.CanceledException e) {
+ Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET, 0);
+ } catch (IntentSender.SendIntentException e) {
Log.w(TAG, e);
} catch (IllegalArgumentException e) {
Log.w(TAG, e);