diff --git a/src/org/lineageos/setupwizard/FinishActivity.java b/src/org/lineageos/setupwizard/FinishActivity.java index 39b85629..d401e350 100644 --- a/src/org/lineageos/setupwizard/FinishActivity.java +++ b/src/org/lineageos/setupwizard/FinishActivity.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2016 The CyanogenMod Project - * Copyright (C) 2017-2019 The LineageOS Project + * Copyright (C) 2017-2020 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ package org.lineageos.setupwizard; import static org.lineageos.setupwizard.SetupWizardApp.DISABLE_NAV_KEYS; -import static org.lineageos.setupwizard.SetupWizardApp.KEY_BUTTON_BACKLIGHT; import static org.lineageos.setupwizard.SetupWizardApp.KEY_SEND_METRICS; import static org.lineageos.setupwizard.SetupWizardApp.LOGV; @@ -207,18 +206,5 @@ public class FinishActivity extends BaseSetupWizardActivity { LineageSettings.System.FORCE_SHOW_NAVBAR, enabled ? 1 : 0, UserHandle.USER_CURRENT); } - - /* Save/restore button timeouts to disable them in softkey mode */ - if (enabled) { - LineageSettings.Secure.putInt(context.getContentResolver(), - LineageSettings.Secure.BUTTON_BRIGHTNESS, 0); - } else { - int currentBrightness = LineageSettings.Secure.getInt(context.getContentResolver(), - LineageSettings.Secure.BUTTON_BRIGHTNESS, 100); - int oldBright = prefs.getInt(KEY_BUTTON_BACKLIGHT, - currentBrightness); - LineageSettings.Secure.putInt(context.getContentResolver(), - LineageSettings.Secure.BUTTON_BRIGHTNESS, oldBright); - } } } diff --git a/src/org/lineageos/setupwizard/SetupWizardApp.java b/src/org/lineageos/setupwizard/SetupWizardApp.java index afab72d1..64214baf 100644 --- a/src/org/lineageos/setupwizard/SetupWizardApp.java +++ b/src/org/lineageos/setupwizard/SetupWizardApp.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2013 The CyanogenMod Project - * Copyright (C) 2017-2019 The LineageOS Project + * Copyright (C) 2017-2020 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -63,7 +63,6 @@ public class SetupWizardApp extends Application { public static final String KEY_DETECT_CAPTIVE_PORTAL = "captive_portal_detection_enabled"; public static final String KEY_SEND_METRICS = "send_metrics"; public static final String DISABLE_NAV_KEYS = "disable_nav_keys"; - public static final String KEY_BUTTON_BACKLIGHT = "pre_navbar_button_backlight"; public static final int REQUEST_CODE_SETUP_WIFI = 0; public static final int REQUEST_CODE_SETUP_CAPTIVE_PORTAL= 4;