summaryrefslogtreecommitdiffstats
path: root/packages/DefaultContainerService
diff options
context:
space:
mode:
authorSuchi Amalapurapu <asuchitra@google.com>2010-03-10 14:19:21 -0800
committerSuchi Amalapurapu <asuchitra@google.com>2010-03-10 16:08:51 -0800
commit089262dc022d87e31eefc536025be6c015c7ebde (patch)
tree2c4706dc952c2c3a4407427579a01057564fab52 /packages/DefaultContainerService
parente182a92ae408f27f46d15de01c8a263cfe6f9246 (diff)
downloadframeworks_base-089262dc022d87e31eefc536025be6c015c7ebde.zip
frameworks_base-089262dc022d87e31eefc536025be6c015c7ebde.tar.gz
frameworks_base-089262dc022d87e31eefc536025be6c015c7ebde.tar.bz2
Dont include code size for apps on sdcard.
Use constants defined in PackageHelper for user preferences to install auto, internal, external. Set default install location to external. Update settings db version number Change-Id: Ib5110c9377990e20a48cee923e55898dfddfd1e6
Diffstat (limited to 'packages/DefaultContainerService')
-rw-r--r--packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java b/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java
index 4635f48..7714911 100644
--- a/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java
+++ b/packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java
@@ -349,11 +349,11 @@ public class DefaultContainerService extends IntentService {
int installPreference = Settings.System.getInt(getApplicationContext()
.getContentResolver(),
Settings.System.DEFAULT_INSTALL_LOCATION,
- PackageInfo.INSTALL_LOCATION_AUTO);
- if (installPreference == 1) {
+ PackageHelper.APP_INSTALL_AUTO);
+ if (installPreference == PackageHelper.APP_INSTALL_INTERNAL) {
installOnlyInternal = true;
auto = false;
- } else if (installPreference == 2) {
+ } else if (installPreference == PackageHelper.APP_INSTALL_EXTERNAL) {
installOnlyOnSd = true;
auto = false;
}