commit | 51ca609048ce0a3d0dbe2b0d6f84effb24d2c106 | [log] [tgz] |
---|---|---|
author | Vinit Nayak <peanutbutter@google.com> | Thu Jun 03 13:27:14 2021 -0700 |
committer | Vinit Nayak <peanutbutter@google.com> | Thu Jun 03 13:27:14 2021 -0700 |
tree | fe3677fd0da001c1aa2c32f9a920a6738b2c014e | |
parent | 161027dc3e23a3ec7461a9303fbc6ff05ae45378 [diff] |
Check for taskbar 3 button flag when initializing RotationContextualButton Fixes: 190063583 Change-Id: Ibc8ee6586cdf7316f61bae9fc5eff39b4b9992f1
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarIconController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarIconController.java index 5d4b8b7..549e26c 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarIconController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarIconController.java
@@ -73,7 +73,7 @@ mTaskbarView.getLayoutParams().height = mActivity.getDeviceProfile().taskbarSize; mDragLayer.init(new TaskbarDragLayerCallbacks(), mTaskbarView); - if (navMode == SysUINavigationMode.Mode.THREE_BUTTONS) { + if (mActivity.canShowNavButtons()) { mRotationButtonController.setRotationButton(mTaskbarView.getContextualRotationButton()); } }