From 6642bca8a784f2a65cde080935878c830e383ffd Mon Sep 17 00:00:00 2001 From: Andy CrossGate Yan 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 db58e1364b3..9ebeab07f11 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java @@ -173,6 +173,7 @@ public class NavigationBarInflaterView extends FrameLayout super.onAttachedToWindow(); Dependency.get(TunerService.class).addTunable(this, NAV_BAR_INVERSE); Dependency.get(TunerService.class).addTunable(this, KEY_NAVIGATION_HINT); + Dependency.get(TunerService.class).addTunable(this, NAV_BAR_VIEWS); } @Override @@ -184,7 +185,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(); } else if (KEY_NAVIGATION_HINT.equals(key)) { -- 2.17.1