OSDN Git Service

Enable moving packages when install location is set to auto.
authorSuchi Amalapurapu <asuchitra@google.com>
Thu, 22 Apr 2010 17:56:51 +0000 (10:56 -0700)
committerSuchi Amalapurapu <asuchitra@google.com>
Thu, 22 Apr 2010 20:42:41 +0000 (13:42 -0700)
Change-Id: If081ad949cb2aed6b3555275c582e951e579ffc9

src/com/android/settings/InstalledAppDetails.java

index a8ceab0..a6496e7 100644 (file)
@@ -242,7 +242,8 @@ public class InstalledAppDetails extends Activity implements View.OnClickListene
             if ((mAppInfo.flags & ApplicationInfo.FLAG_FORWARD_LOCK) == 0 &&
                     (mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0 &&
                     pkgInfo != null) {
-                if (pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL) {
+                if (pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL ||
+                        pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_AUTO) {
                     moveDisable = false;
                 } else if (pkgInfo.installLocation == PackageInfo.INSTALL_LOCATION_UNSPECIFIED) {
                     IPackageManager ipm  = IPackageManager.Stub.asInterface(