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

Commit 92579671 authored by Danesh M's avatar Danesh M
Browse files

Settings : Add overlay for hiding performance options

Change-Id: I657c94aea5da1591a72c4758d4bfec93b8f77dad
parent e683e978
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -94,4 +94,8 @@

    <!-- This is used to define screen color's contrast progress bar maximum value-->
    <integer name="maximum_contrast_value" translatable="false">360</integer>

    <!-- This is use to determine whether to hide the performance settings-->
    <bool name="config_hidePerformanceSettings" translatable="false">false</bool>

</resources>
+6 −1
Original line number Diff line number Diff line
@@ -775,7 +775,12 @@ public class Settings extends PreferenceActivity
                }
            } else if (id == R.id.development_settings
                    || id == R.id.performance_settings) {
                if (!showDev) {
                boolean removePreference = !showDev;
                if (!removePreference && id == R.id.performance_settings) {
                    final Resources res = getResources();
                    removePreference = res.getBoolean(R.bool.config_hidePerformanceSettings);
                }
                if (removePreference) {
                    target.remove(i);
                }
            } else if (id == R.id.account_add) {