summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Carr <racarr@google.com>2015-10-20 18:33:58 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-10-20 18:33:58 +0000
commite2a49862c147161292b802d70070b7f6c91cca00 (patch)
tree29883ba6c211bece6553fffcef68700a7d0b0c87
parent9e97c20ed9f4377caf4de902659b0f97b7b4a90d (diff)
parentcfea184d6c0268b92ed55276d2b686962c8ee531 (diff)
downloadframeworks_base-e2a49862c147161292b802d70070b7f6c91cca00.zip
frameworks_base-e2a49862c147161292b802d70070b7f6c91cca00.tar.gz
frameworks_base-e2a49862c147161292b802d70070b7f6c91cca00.tar.bz2
Merge "Correct ActivityInfo constructors." into mnc-dr-dev
am: cfea184d6c * commit 'cfea184d6c0268b92ed55276d2b686962c8ee531': Correct ActivityInfo constructors.
-rw-r--r--core/java/android/content/pm/ActivityInfo.java9
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 43cc63b..e798eb8 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();