Merge "If activity is an alias get maxRecents from target" into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3969cabf59
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user