Merge "If activity is an alias get maxRecents from target" into lmp-dev

This commit is contained in:
Craig Mautner
2014-09-11 23:02:25 +00:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 1 deletions

View File

@@ -657,6 +657,7 @@ public class ActivityInfo extends ComponentInfo
softInputMode = orig.softInputMode;
uiOptions = orig.uiOptions;
parentActivityName = orig.parentActivityName;
maxRecents = orig.maxRecents;
}
/**
@@ -728,6 +729,7 @@ public class ActivityInfo extends ComponentInfo
dest.writeInt(uiOptions);
dest.writeString(parentActivityName);
dest.writeInt(persistableMode);
dest.writeInt(maxRecents);
}
public static final Parcelable.Creator<ActivityInfo> CREATOR
@@ -754,5 +756,6 @@ public class ActivityInfo extends ComponentInfo
uiOptions = source.readInt();
parentActivityName = source.readString();
persistableMode = source.readInt();
maxRecents = source.readInt();
}
}

View File

@@ -3308,7 +3308,8 @@ public class PackageParser {
info.softInputMode = target.info.softInputMode;
info.uiOptions = target.info.uiOptions;
info.parentActivityName = target.info.parentActivityName;
info.maxRecents = target.info.maxRecents;
Activity a = new Activity(mParseActivityAliasArgs, info);
if (outError[0] != null) {
sa.recycle();