41 lines
1.8 KiB
Diff
41 lines
1.8 KiB
Diff
From 9a0fea3a8fa45f4fd804f06eaa0a39a044ecb0d8 Mon Sep 17 00:00:00 2001
|
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
Date: Sun, 3 Nov 2019 03:32:02 +0000
|
|
Subject: [PATCH] UI: Revive navbar layout tuning via sysui_nav_bar tunable
|
|
|
|
Google keeps fixing what ain't broken.
|
|
This partially undoes https://github.com/LineageOS/android_frameworks_base/commit/e0d5ccd331e694afdc3c8462a1b845df329de2b8
|
|
|
|
Change-Id: I7a0fcfc9c27a08100712200d50f295f4bd81494d
|
|
---
|
|
.../systemui/statusbar/phone/NavigationBarInflaterView.java | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
|
|
index 79a47af9fdf..50b3a47b6fa 100644
|
|
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
|
|
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
|
|
@@ -155,7 +155,7 @@ public class NavigationBarInflaterView extends FrameLayout
|
|
@Override
|
|
protected void onAttachedToWindow() {
|
|
super.onAttachedToWindow();
|
|
- Dependency.get(TunerService.class).addTunable(this, NAV_BAR_INVERSE);
|
|
+ Dependency.get(TunerService.class).addTunable(this, NAV_BAR_VIEWS, NAV_BAR_INVERSE);
|
|
}
|
|
|
|
@Override
|
|
@@ -167,7 +167,9 @@ public class NavigationBarInflaterView extends FrameLayout
|
|
|
|
@Override
|
|
public void onTuningChanged(String key, String newValue) {
|
|
- if (NAV_BAR_INVERSE.equals(key)) {
|
|
+ if (NAV_BAR_VIEWS.equals(key)) {
|
|
+ setNavigationBarLayout(newValue);
|
|
+ } else if (NAV_BAR_INVERSE.equals(key)) {
|
|
mInverseLayout = TunerService.parseIntegerSwitch(newValue, false);
|
|
updateLayoutInversion();
|
|
}
|
|
--
|
|
2.17.1
|
|
|