diff options
| author | Suchi Amalapurapu <asuchitra@google.com> | 2010-04-14 14:05:38 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-04-14 14:05:38 -0700 |
| commit | 6023d0b93d18c868450c3390a43984acdfbad1eb (patch) | |
| tree | 35d03971278ba5b3d0f2cb168b1ef45dc9f81bf5 | |
| parent | fc5a02225e8bca21f07543f55e1b51a33670c501 (diff) | |
| parent | 30de84777b715a586f85d7665227342e6b67d373 (diff) | |
| download | packages_apps_Settings-6023d0b93d18c868450c3390a43984acdfbad1eb.zip packages_apps_Settings-6023d0b93d18c868450c3390a43984acdfbad1eb.tar.gz packages_apps_Settings-6023d0b93d18c868450c3390a43984acdfbad1eb.tar.bz2 | |
Merge "Fix 258181 Enable moving apps to external storage if install location is set and they had been moved to internal storage." into froyo
| -rw-r--r-- | src/com/android/settings/InstalledAppDetails.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/com/android/settings/InstalledAppDetails.java b/src/com/android/settings/InstalledAppDetails.java index 52e9844..a8ceab0 100644 --- a/src/com/android/settings/InstalledAppDetails.java +++ b/src/com/android/settings/InstalledAppDetails.java @@ -239,15 +239,11 @@ public class InstalledAppDetails extends Activity implements View.OnClickListene moveDisable = false; } else { mMoveAppButton.setText(R.string.move_app_to_sdcard); - if ((mAppInfo.flags & ApplicationInfo.FLAG_FORWARD_LOCK) != 0 || - (mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { - moveDisable = true; - } else if (pkgInfo != null) { - if (pkgInfo.installLocation == - PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY) { - // If an application explicitly specifies install location - // consider that - moveDisable = true; + if ((mAppInfo.flags & ApplicationInfo.FLAG_FORWARD_LOCK) == 0 && + (mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0 && + pkgInfo != null) { + if (pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL) { + moveDisable = false; } else if (pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_UNSPECIFIED) { IPackageManager ipm = IPackageManager.Stub.asInterface( ServiceManager.getService("package")); |
