From 7f1a57a3e709b9e1fdb03a7a8af5f13859f7f1ad Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Wed, 8 Oct 2014 10:14:53 -0700 Subject: Bring along more ApplicationInfo fields. When we added scan paths, we forgot to bring them along through Parcel and copy constructor. Bug: 17900178 Change-Id: I0ee9374f909d375768045976fd88cee7431f7d4d --- core/java/android/content/pm/ApplicationInfo.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/java/android/content/pm/ApplicationInfo.java b/core/java/android/content/pm/ApplicationInfo.java index 548a0c9..e07edba 100644 --- a/core/java/android/content/pm/ApplicationInfo.java +++ b/core/java/android/content/pm/ApplicationInfo.java @@ -683,6 +683,8 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { requiresSmallestWidthDp = orig.requiresSmallestWidthDp; compatibleWidthLimitDp = orig.compatibleWidthLimitDp; largestWidthLimitDp = orig.largestWidthLimitDp; + scanSourceDir = orig.scanSourceDir; + scanPublicSourceDir = orig.scanPublicSourceDir; sourceDir = orig.sourceDir; publicSourceDir = orig.publicSourceDir; splitSourceDirs = orig.splitSourceDirs; @@ -731,6 +733,8 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { dest.writeInt(requiresSmallestWidthDp); dest.writeInt(compatibleWidthLimitDp); dest.writeInt(largestWidthLimitDp); + dest.writeString(scanSourceDir); + dest.writeString(scanPublicSourceDir); dest.writeString(sourceDir); dest.writeString(publicSourceDir); dest.writeStringArray(splitSourceDirs); @@ -778,6 +782,8 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { requiresSmallestWidthDp = source.readInt(); compatibleWidthLimitDp = source.readInt(); largestWidthLimitDp = source.readInt(); + scanSourceDir = source.readString(); + scanPublicSourceDir = source.readString(); sourceDir = source.readString(); publicSourceDir = source.readString(); splitSourceDirs = source.readStringArray(); -- cgit v1.1