Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64eb3cfb authored by Steve Kondik's avatar Steve Kondik
Browse files

Allow moving any package is system property is set.

parent d24e0345
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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) {
@@ -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);