From f66beeaea7d3654bee280644f4edc6d7215b0ee5 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 17 Sep 2009 15:15:46 -0700 Subject: [PATCH] Follow along with startActivityPendingIntent() change. Change-Id: I6d804af66deeaf87339eeb548b6a3d2965262f02 --- src/com/android/settings/RunningServices.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/com/android/settings/RunningServices.java b/src/com/android/settings/RunningServices.java index 03168d07c21..a82292a2eb2 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);