From 51ca609048ce0a3d0dbe2b0d6f84effb24d2c106 Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Thu, 3 Jun 2021 13:27:14 -0700 Subject: [PATCH] Check for taskbar 3 button flag when initializing RotationContextualButton Fixes: 190063583 Change-Id: Ibc8ee6586cdf7316f61bae9fc5eff39b4b9992f1 --- .../com/android/launcher3/taskbar/TaskbarIconController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarIconController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarIconController.java index 5d4b8b7f4e..549e26cb22 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarIconController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarIconController.java @@ -73,7 +73,7 @@ public class TaskbarIconController { mTaskbarView.getLayoutParams().height = mActivity.getDeviceProfile().taskbarSize; mDragLayer.init(new TaskbarDragLayerCallbacks(), mTaskbarView); - if (navMode == SysUINavigationMode.Mode.THREE_BUTTONS) { + if (mActivity.canShowNavButtons()) { mRotationButtonController.setRotationButton(mTaskbarView.getContextualRotationButton()); } }