28 lines
1.6 KiB
Diff
28 lines
1.6 KiB
Diff
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
|
|
--- a/core/res/res/values/config.xml
|
|
+++ b/core/res/res/values/config.xml
|
|
@@ -4622,6 +4622,10 @@
|
|
default. This should be controlled in developer options. -->
|
|
<bool name="config_navBarDefaultTransparent">false</bool>
|
|
|
|
+ <!-- Set to false to disable Taskbar (e.g. TV/SBC builds where large dp width
|
|
+ should not trigger Taskbar). -->
|
|
+ <bool name="config_taskbarEnabled">true</bool>
|
|
+
|
|
<!-- Controls the free snap mode for the docked stack divider. In this mode, the divider can be
|
|
snapped to any position between the first target and the last target. -->
|
|
<bool name="config_dockedStackDividerFreeSnapMode">false</bool>
|
|
diff --git a/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarControllerImpl.java b/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarControllerImpl.java
|
|
--- a/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarControllerImpl.java
|
|
+++ b/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarControllerImpl.java
|
|
@@ -288,6 +288,9 @@ public class NavigationBarControllerImpl implements
|
|
|
|
@VisibleForTesting
|
|
boolean supportsTaskbar() {
|
|
+ if (!mContext.getResources().getBoolean(R.bool.config_taskbarEnabled)) {
|
|
+ return false;
|
|
+ }
|
|
// Enable for tablets, unfolded state on a foldable device, (non handheld AND flag is set),
|
|
// or handheld when enableTaskbarOnPhones() returns true.
|
|
boolean foldedOrPhone = !mIsPhone || enableTaskbarOnPhones();
|