am f66beeae
: Follow along with startActivityPendingIntent() change.
Merge commit 'f66beeaea7d3654bee280644f4edc6d7215b0ee5' into eclair-plus-aosp * commit 'f66beeaea7d3654bee280644f4edc6d7215b0ee5': Follow along with startActivityPendingIntent() change.
This commit is contained in:
@@ -28,6 +28,7 @@ import android.content.ComponentName;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.content.IntentSender;
|
||||||
import android.content.pm.ApplicationInfo;
|
import android.content.pm.ApplicationInfo;
|
||||||
import android.content.pm.PackageInfo;
|
import android.content.pm.PackageInfo;
|
||||||
import android.content.pm.PackageItemInfo;
|
import android.content.pm.PackageItemInfo;
|
||||||
@@ -789,11 +790,11 @@ public class RunningServices extends ListActivity
|
|||||||
si.mRunningService.service);
|
si.mRunningService.service);
|
||||||
if (pi != null) {
|
if (pi != null) {
|
||||||
try {
|
try {
|
||||||
this.startActivity(pi, null,
|
this.startIntentSender(pi.getIntentSender(), null,
|
||||||
Intent.FLAG_ACTIVITY_NEW_TASK
|
Intent.FLAG_ACTIVITY_NEW_TASK
|
||||||
| Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET,
|
| Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET,
|
||||||
Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
|
Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET, 0);
|
||||||
} catch (PendingIntent.CanceledException e) {
|
} catch (IntentSender.SendIntentException e) {
|
||||||
Log.w(TAG, e);
|
Log.w(TAG, e);
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
Log.w(TAG, e);
|
Log.w(TAG, e);
|
||||||
|
Reference in New Issue
Block a user