diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-06-17 14:49:23 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-06-17 14:49:45 -0700 |
commit | 0ac3031c159a0904e73eb4439cdc724d8df4a6e6 (patch) | |
tree | 27d80b0cb1d37b10c898340348ae863014c4a6e0 /core/java/android/content/pm/ApplicationInfo.java | |
parent | 3a3efe756389cbda3ddf74c0c55d7a3ce68f3780 (diff) | |
download | frameworks_base-0ac3031c159a0904e73eb4439cdc724d8df4a6e6.zip frameworks_base-0ac3031c159a0904e73eb4439cdc724d8df4a6e6.tar.gz frameworks_base-0ac3031c159a0904e73eb4439cdc724d8df4a6e6.tar.bz2 |
Implement remaining infrastructure for user disabling apps.
Change-Id: If8135eb0e27ec36f8f159eb7b6397add7acd0299
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(); |