LineageSettings: Remove "advanced_mode" setting
* This was a CyanogenMod feature that we never forward ported. Change-Id: Idce22d57784132ff0676bce3e1dd55f9793c1a59
This commit is contained in:
@@ -657,13 +657,6 @@ public final class LineageSettings {
|
||||
|
||||
// region Secure Settings
|
||||
|
||||
/**
|
||||
* Whether to enable "advanced mode" for the current user.
|
||||
* Boolean setting. 0 = no, 1 = yes.
|
||||
* @hide
|
||||
*/
|
||||
public static final String ADVANCED_MODE = "advanced_mode";
|
||||
|
||||
/**
|
||||
* The time in ms to keep the button backlight on after pressing a button.
|
||||
* A value of 0 will keep the buttons on for as long as the screen is on.
|
||||
@@ -847,7 +840,6 @@ public final class LineageSettings {
|
||||
* @hide
|
||||
*/
|
||||
public static final String[] LEGACY_SECURE_SETTINGS = new String[]{
|
||||
LineageSettings.Secure.ADVANCED_MODE,
|
||||
LineageSettings.Secure.BUTTON_BACKLIGHT_TIMEOUT,
|
||||
LineageSettings.Secure.BUTTON_BRIGHTNESS,
|
||||
LineageSettings.Secure.DEV_FORCE_SHOW_NAVBAR,
|
||||
|
||||
@@ -29,9 +29,6 @@
|
||||
|
||||
<!-- Defaults for Secure -->
|
||||
|
||||
<!-- Default for LineageSettings.Secure.ADVANCED_MODE -->
|
||||
<bool name="def_advanced_mode">true</bool>
|
||||
|
||||
<!-- Default for LineageSettings.Secure.STATS_COLLECTION -->
|
||||
<bool name="def_stats_collection">false</bool>
|
||||
|
||||
|
||||
@@ -473,9 +473,6 @@ public class LineageDatabaseHelper extends SQLiteOpenHelper{
|
||||
stmt = db.compileStatement("INSERT OR IGNORE INTO secure(name,value)"
|
||||
+ " VALUES(?,?);");
|
||||
// Secure
|
||||
loadBooleanSetting(stmt, LineageSettings.Secure.ADVANCED_MODE,
|
||||
R.bool.def_advanced_mode);
|
||||
|
||||
loadBooleanSetting(stmt, LineageSettings.Secure.STATS_COLLECTION,
|
||||
R.bool.def_stats_collection);
|
||||
|
||||
|
||||
@@ -76,9 +76,6 @@ public class LineageSettingsProviderDefaultsTest extends AndroidTestCase {
|
||||
|
||||
//SECURE
|
||||
static {
|
||||
SECURE_SETTINGS_DEFAULTS.add(new Setting(
|
||||
LineageSettings.Secure.ADVANCED_MODE,
|
||||
"R.bool.def_advanced_mode"));
|
||||
SECURE_SETTINGS_DEFAULTS.add(new Setting(
|
||||
LineageSettings.Secure.STATS_COLLECTION,
|
||||
"R.bool.def_stats_collection"));
|
||||
|
||||
@@ -2690,13 +2690,6 @@ public final class LineageSettings {
|
||||
|
||||
// region Secure Settings
|
||||
|
||||
/**
|
||||
* Whether to enable "advanced mode" for the current user.
|
||||
* Boolean setting. 0 = no, 1 = yes.
|
||||
* @hide
|
||||
*/
|
||||
public static final String ADVANCED_MODE = "advanced_mode";
|
||||
|
||||
/**
|
||||
* The time in ms to keep the button backlight on after pressing a button.
|
||||
* A value of 0 will keep the buttons on for as long as the screen is on.
|
||||
@@ -3007,7 +3000,6 @@ public final class LineageSettings {
|
||||
* @hide
|
||||
*/
|
||||
public static final String[] LEGACY_SECURE_SETTINGS = new String[]{
|
||||
LineageSettings.Secure.ADVANCED_MODE,
|
||||
LineageSettings.Secure.BUTTON_BACKLIGHT_TIMEOUT,
|
||||
LineageSettings.Secure.BUTTON_BRIGHTNESS,
|
||||
LineageSettings.Secure.KEYBOARD_BRIGHTNESS,
|
||||
|
||||
Reference in New Issue
Block a user