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

Commit 11333b51 authored by Roman Birg's avatar Roman Birg Committed by Abhisek Devkota
Browse files

CMFileManager: remove access mode preference for user builds



For user (unrooted) builds, remove the access mode preference because it
is always disabled and misleading to the user.

Change-Id: I8be16109f98cc7c4230e936d9e7580d2d5c27f07
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 1e05f275
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -536,7 +536,7 @@ public class NavigationActivity extends Activity
                ((Boolean)FileManagerSettings.SETTINGS_FIRST_USE.getDefaultValue()).booleanValue());

        //Display the welcome message?
        if (firstUse) {
        if (firstUse && !FileManagerApplication.isDeviceRooted()) {
            // open navigation drawer to show user that it exists
            mDrawerLayout.openDrawer(mDrawer);

+5 −0
Original line number Diff line number Diff line
@@ -257,6 +257,11 @@ public class GeneralPreferenceFragment extends TitlePreferenceFragment {
        boolean restrictedAccess = AndroidHelper.isSecondaryUser(context) &&
                FileManagerApplication.isRestrictSecondaryUsersAccess(context);
        this.mAccessMode.setEnabled(FileManagerApplication.isDeviceRooted() && !restrictedAccess);
        if (!FileManagerApplication.isDeviceRooted()) {
            PreferenceCategory category = (PreferenceCategory) findPreference(
                    "general_advanced_settings");
            category.removePreference(mAccessMode);
        }
    }

    /**