Add logging to TaskPersister restore.
Solve tasks not being restored.
Fixes bug 15935752.
Change-Id: Ia3dd50072ac8255bcc37812a0639545b60f5d06f
diff --git a/services/core/java/com/android/server/am/ActivityRecord.java b/services/core/java/com/android/server/am/ActivityRecord.java
index f4e9876..287ad00 100755
--- a/services/core/java/com/android/server/am/ActivityRecord.java
+++ b/services/core/java/com/android/server/am/ActivityRecord.java
@@ -1147,7 +1147,8 @@
final ActivityInfo aInfo = stackSupervisor.resolveActivity(intent, resolvedType, 0, null,
null, userId);
if (aInfo == null) {
- throw new XmlPullParserException("restoreActivity resolver error.");
+ throw new XmlPullParserException("restoreActivity resolver error. Intent=" + intent +
+ " resolvedType=" + resolvedType);
}
final ActivityRecord r = new ActivityRecord(service, /*caller*/null, launchedFromUid,
launchedFromPackage, intent, resolvedType, aInfo, service.getConfiguration(),