diff options
| author | 2015-10-20 19:26:38 +0000 | |
|---|---|---|
| committer | 2015-10-20 19:26:38 +0000 | |
| commit | 2d021f9f48e8792181d13c269cc4d2484a62e040 (patch) | |
| tree | e55ae243e2fb15a6d83240c3b64ef15cb0ea74cd | |
| parent | 4d14e65cdf968ba43e47fe79e7b6d7e62d8b2ed1 (diff) | |
| parent | 8caf80d571c37bc6fefd68227432fd49d76aaa93 (diff) | |
Merge "Correct ActivityInfo constructors." into mnc-dr-dev am: cfea184d6c am: e2a49862c1
am: 8caf80d571
* commit '8caf80d571c37bc6fefd68227432fd49d76aaa93':
Correct ActivityInfo constructors.
| -rw-r--r-- | core/java/android/content/pm/ActivityInfo.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/content/pm/ActivityInfo.java b/core/java/android/content/pm/ActivityInfo.java index 43cc63b4a3c8..e798eb8f7d2c 100644 --- a/core/java/android/content/pm/ActivityInfo.java +++ b/core/java/android/content/pm/ActivityInfo.java @@ -33,12 +33,16 @@ import java.lang.annotation.RetentionPolicy; */ public class ActivityInfo extends ComponentInfo implements Parcelable { + + // NOTE: When adding new data members be sure to update the copy-constructor, Parcel + // constructor, and writeToParcel. + /** * A style resource identifier (in the package's resources) of this * activity's theme. From the "theme" attribute or, if not set, 0. */ public int theme; - + /** * Constant corresponding to <code>standard</code> in * the {@link android.R.attr#launchMode} attribute. @@ -705,6 +709,7 @@ public class ActivityInfo extends ComponentInfo super(orig); theme = orig.theme; launchMode = orig.launchMode; + documentLaunchMode = orig.documentLaunchMode; permission = orig.permission; taskAffinity = orig.taskAffinity; targetActivity = orig.targetActivity; @@ -780,6 +785,7 @@ public class ActivityInfo extends ComponentInfo super.writeToParcel(dest, parcelableFlags); dest.writeInt(theme); dest.writeInt(launchMode); + dest.writeInt(documentLaunchMode); dest.writeString(permission); dest.writeString(taskAffinity); dest.writeString(targetActivity); @@ -809,6 +815,7 @@ public class ActivityInfo extends ComponentInfo super(source); theme = source.readInt(); launchMode = source.readInt(); + documentLaunchMode = source.readInt(); permission = source.readString(); taskAffinity = source.readString(); targetActivity = source.readString(); |