diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-06-17 14:53:10 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-17 14:53:10 -0700 |
commit | ca1e210dd6d8d46bc672cca4da827b77205f285d (patch) | |
tree | 8f7f19f619f6c66d11d9a922f5f8935d4b377d39 /core/java/android/content/pm/ApplicationInfo.java | |
parent | dc4280419b44f2da0aa3f734af5fa28def67dc99 (diff) | |
parent | 0ac3031c159a0904e73eb4439cdc724d8df4a6e6 (diff) | |
download | frameworks_base-ca1e210dd6d8d46bc672cca4da827b77205f285d.zip frameworks_base-ca1e210dd6d8d46bc672cca4da827b77205f285d.tar.gz frameworks_base-ca1e210dd6d8d46bc672cca4da827b77205f285d.tar.bz2 |
Merge "Implement remaining infrastructure for user disabling apps."
Diffstat (limited to 'core/java/android/content/pm/ApplicationInfo.java')
-rw-r--r-- | core/java/android/content/pm/ApplicationInfo.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/content/pm/ApplicationInfo.java b/core/java/android/content/pm/ApplicationInfo.java index c0a1d8e..454cb31 100644 --- a/core/java/android/content/pm/ApplicationInfo.java +++ b/core/java/android/content/pm/ApplicationInfo.java @@ -417,6 +417,12 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { public boolean enabled = true; /** + * For convenient access to the current enabled setting of this app. + * @hide + */ + public int enabledSetting = PackageManager.COMPONENT_ENABLED_STATE_DEFAULT; + + /** * For convenient access to package's install location. * @hide */ @@ -508,6 +514,7 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { uid = orig.uid; targetSdkVersion = orig.targetSdkVersion; enabled = orig.enabled; + enabledSetting = orig.enabledSetting; installLocation = orig.installLocation; manageSpaceActivityName = orig.manageSpaceActivityName; descriptionRes = orig.descriptionRes; @@ -544,6 +551,7 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { dest.writeInt(uid); dest.writeInt(targetSdkVersion); dest.writeInt(enabled ? 1 : 0); + dest.writeInt(enabledSetting); dest.writeInt(installLocation); dest.writeString(manageSpaceActivityName); dest.writeString(backupAgentName); @@ -581,6 +589,7 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { uid = source.readInt(); targetSdkVersion = source.readInt(); enabled = source.readInt() != 0; + enabledSetting = source.readInt(); installLocation = source.readInt(); manageSpaceActivityName = source.readString(); backupAgentName = source.readString(); |