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

Commit e6642c66 authored by Steve Kondik's avatar Steve Kondik
Browse files

Allow moving any package is system property is set.

parent 8a5a204b
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -231,6 +231,7 @@ public class InstalledAppDetails extends Activity implements View.OnClickListene
        }
        }
        dataOnly = (info1 == null) && (mAppInfo != null);
        dataOnly = (info1 == null) && (mAppInfo != null);
        boolean moveDisable = true;
        boolean moveDisable = true;

        if (dataOnly) {
        if (dataOnly) {
            mMoveAppButton.setText(R.string.move_app);
            mMoveAppButton.setText(R.string.move_app);
        } else if ((mAppInfo.flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) != 0) {
        } else if ((mAppInfo.flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) != 0) {
@@ -263,7 +264,9 @@ public class InstalledAppDetails extends Activity implements View.OnClickListene
                }
                }
            }
            }
        }
        }
        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);
            mMoveAppButton.setEnabled(false);
        } else {
        } else {
            mMoveAppButton.setOnClickListener(this);
            mMoveAppButton.setOnClickListener(this);