Loading src/com/android/settings/applications/InstalledAppDetails.java +4 −1 Original line number Diff line number Diff line Loading @@ -222,6 +222,7 @@ public class InstalledAppDetails extends Activity boolean dataOnly = false; dataOnly = (mPackageInfo == null) && (mAppEntry != null); boolean moveDisable = true; if (dataOnly) { mMoveAppButton.setText(R.string.move_app); } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) != 0) { Loading @@ -233,7 +234,9 @@ public class InstalledAppDetails extends Activity mCanBeOnSdCardChecker.init(); moveDisable = !mCanBeOnSdCardChecker.check(mAppEntry.info); } if (moveDisable) { boolean allowMoveAllApps = android.provider.Settings.Secure.getInt(getContentResolver(), android.provider.Settings.Secure.ALLOW_MOVE_ALL_APPS_EXTERNAL, 1) == 1; if (!allowMoveAllApps && moveDisable) { mMoveAppButton.setEnabled(false); } else { mMoveAppButton.setOnClickListener(this); Loading Loading
src/com/android/settings/applications/InstalledAppDetails.java +4 −1 Original line number Diff line number Diff line Loading @@ -222,6 +222,7 @@ public class InstalledAppDetails extends Activity boolean dataOnly = false; dataOnly = (mPackageInfo == null) && (mAppEntry != null); boolean moveDisable = true; if (dataOnly) { mMoveAppButton.setText(R.string.move_app); } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) != 0) { Loading @@ -233,7 +234,9 @@ public class InstalledAppDetails extends Activity mCanBeOnSdCardChecker.init(); moveDisable = !mCanBeOnSdCardChecker.check(mAppEntry.info); } if (moveDisable) { boolean allowMoveAllApps = android.provider.Settings.Secure.getInt(getContentResolver(), android.provider.Settings.Secure.ALLOW_MOVE_ALL_APPS_EXTERNAL, 1) == 1; if (!allowMoveAllApps && moveDisable) { mMoveAppButton.setEnabled(false); } else { mMoveAppButton.setOnClickListener(this); Loading