2022-12-23 10:41:07 +01:00
|
|
|
From 097c997bb711427bb8dd111b63ec8f5fb5cc3382 Mon Sep 17 00:00:00 2001
|
2022-09-18 12:17:53 +02:00
|
|
|
From: nyyu <mail@nyyu.dev>
|
|
|
|
Date: Sun, 18 Sep 2022 11:44:26 +0200
|
|
|
|
Subject: [PATCH] fix: always enable taskbar toggle
|
|
|
|
|
|
|
|
Change-Id: I247db667bec92fabcdbe7bd84946e79bae7e0bb6
|
|
|
|
---
|
2022-12-23 10:41:07 +01:00
|
|
|
src/org/lineageos/lineageparts/input/ButtonSettings.java | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
2022-09-18 12:17:53 +02:00
|
|
|
|
|
|
|
diff --git a/src/org/lineageos/lineageparts/input/ButtonSettings.java b/src/org/lineageos/lineageparts/input/ButtonSettings.java
|
2022-12-23 10:41:07 +01:00
|
|
|
index a6fa54f..d73c2e1 100644
|
2022-09-18 12:17:53 +02:00
|
|
|
--- a/src/org/lineageos/lineageparts/input/ButtonSettings.java
|
|
|
|
+++ b/src/org/lineageos/lineageparts/input/ButtonSettings.java
|
|
|
|
@@ -476,7 +476,7 @@ public class ButtonSettings extends SettingsPreferenceFragment
|
|
|
|
mEnableTaskbar = findPreference(KEY_ENABLE_TASKBAR);
|
|
|
|
if (mEnableTaskbar != null) {
|
|
|
|
if (!isTablet(getContext()) || !hasNavigationBar()) {
|
|
|
|
- mNavigationPreferencesCat.removePreference(mEnableTaskbar);
|
|
|
|
+ //mNavigationPreferencesCat.removePreference(mEnableTaskbar);
|
|
|
|
} else {
|
|
|
|
mEnableTaskbar.setOnPreferenceChangeListener(this);
|
|
|
|
mEnableTaskbar.setChecked(LineageSettings.System.getInt(resolver,
|
2022-12-23 10:41:07 +01:00
|
|
|
@@ -867,6 +867,7 @@ public class ButtonSettings extends SettingsPreferenceFragment
|
|
|
|
return true;
|
|
|
|
} else if (preference == mDisableNavigationKeys) {
|
|
|
|
mDisableNavigationKeys.setEnabled(false);
|
|
|
|
+ mEnableTaskbar.setChecked(false);
|
|
|
|
mNavigationPreferencesCat.setEnabled(false);
|
|
|
|
if (!mDisableNavigationKeys.isChecked()) {
|
|
|
|
setButtonNavigationMode(NAV_BAR_MODE_3BUTTON_OVERLAY);
|
|
|
|
--
|
|
|
|
2.39.0
|