Skip to content

Commit 26627cc

Browse files
Dianne HackbornAndroid (Google) Code Review
authored andcommitted
Merge "A little debug code from issue #6516197: Places app not getting removed..." into jb-dev
2 parents a78bdd9 + 7f96b79 commit 26627cc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

services/java/com/android/server/am/TaskRecord.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
import android.content.ComponentName;
2020
import android.content.Intent;
2121
import android.content.pm.ActivityInfo;
22-
import android.content.pm.PackageManager;
23-
import android.graphics.Bitmap;
2422
import android.os.UserId;
23+
import android.util.Slog;
2524

2625
import java.io.PrintWriter;
2726

@@ -69,6 +68,8 @@ void setIntent(Intent _intent, ActivityInfo info) {
6968
_intent.setSourceBounds(null);
7069
}
7170
}
71+
if (ActivityManagerService.DEBUG_TASKS) Slog.v(ActivityManagerService.TAG,
72+
"Setting Intent of " + this + " to " + _intent);
7273
intent = _intent;
7374
realActivity = _intent != null ? _intent.getComponent() : null;
7475
origActivity = null;
@@ -80,6 +81,8 @@ void setIntent(Intent _intent, ActivityInfo info) {
8081
targetIntent.setComponent(targetComponent);
8182
targetIntent.setSelector(null);
8283
targetIntent.setSourceBounds(null);
84+
if (ActivityManagerService.DEBUG_TASKS) Slog.v(ActivityManagerService.TAG,
85+
"Setting Intent of " + this + " to target " + targetIntent);
8386
intent = targetIntent;
8487
realActivity = targetComponent;
8588
origActivity = _intent.getComponent();
@@ -103,9 +106,10 @@ void setIntent(Intent _intent, ActivityInfo info) {
103106
}
104107

105108
void dump(PrintWriter pw, String prefix) {
106-
if (numActivities != 0 || rootWasReset) {
109+
if (numActivities != 0 || rootWasReset || userId != 0) {
107110
pw.print(prefix); pw.print("numActivities="); pw.print(numActivities);
108-
pw.print(" rootWasReset="); pw.println(rootWasReset);
111+
pw.print(" rootWasReset="); pw.print(rootWasReset);
112+
pw.print(" userId="); pw.println(userId);
109113
}
110114
if (affinity != null) {
111115
pw.print(prefix); pw.print("affinity="); pw.println(affinity);

0 commit comments

Comments
 (0)