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

Commit b1e51979 authored by dhacker29's avatar dhacker29 Committed by David Hacker
Browse files

Remove QuickBoot preference if package isn't available

Change-Id: I6f00b6be8d87c1013d2c695d93e66d276017b0a1
parent 8b472347
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
    private static final String HDCP_CHECKING_KEY = "hdcp_checking";
    private static final String HDCP_CHECKING_PROPERTY = "persist.sys.hdcp_checking";
    private static final String ENABLE_QUICKBOOT= "enable_quickboot";
    private static final String QUICKBOOT_PACKAGE_NAME = "com.qapp.quickboot";
    private static final String LOCAL_BACKUP_PASSWORD = "local_backup_password";
    private static final String HARDWARE_UI_PROPERTY = "persist.sys.ui.hw";
    private static final String MSAA_PROPERTY = "debug.egl.force_msaa";
@@ -345,6 +346,11 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
            disableForUser(mPassword);
            disableForUser(mAdvancedReboot);
            disableForUser(mDevelopmentShortcut);
            disableForUser(mQuickBoot);
        }

        if (!isPackageInstalled(getActivity(), QUICKBOOT_PACKAGE_NAME)) {
            removePreference(mQuickBoot);
        }

        mDebugAppPref = findPreference(DEBUG_APP_KEY);