[CD Taskbar] Fix - Unlock/Lock Removes Recents button + icons
The SYSUI_STATE_OVERVIEW_DISABLED is being incorrectly set for non-primary displays. Override this behavior on taskbar level for non-primary displays & track the sysUI side fix via b/409075366. Bug: 408478776 Flag: com.android.window.flags.enable_taskbar_connected_displays Test: m Change-Id: Ie93d576dc525e80a8bc1e59dbcefa02b2e50591d
This commit is contained in:
1 parent
3351985052
commit
cd50c6fd9f
1 file changed
+5
-2
@@ -544,7 +544,9 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
boolean isBackDismissIme = (sysUiStateFlags & SYSUI_STATE_BACK_DISMISS_IME) != 0;
|
||||
boolean a11yVisible = (sysUiStateFlags & SYSUI_STATE_A11Y_BUTTON_CLICKABLE) != 0;
|
||||
boolean isHomeDisabled = (sysUiStateFlags & SYSUI_STATE_HOME_DISABLED) != 0;
|
||||
boolean isRecentsDisabled = (sysUiStateFlags & SYSUI_STATE_OVERVIEW_DISABLED) != 0;
|
||||
// TODO: b/409075366 - ensure this signal is correctly set for external displays.
|
||||
boolean isRecentsDisabled = mContext.isPrimaryDisplay()
|
||||
&& (sysUiStateFlags & SYSUI_STATE_OVERVIEW_DISABLED) != 0;
|
||||
boolean isBackDisabled = (sysUiStateFlags & SYSUI_STATE_BACK_DISABLED) != 0;
|
||||
long shadeExpandedFlags = SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED
|
||||
| SYSUI_STATE_QUICK_SETTINGS_EXPANDED;
|
||||
@@ -641,7 +643,8 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
* Returns true if the recents (overview) button is disabled
|
||||
*/
|
||||
public boolean isRecentsDisabled() {
|
||||
return (mState & FLAG_DISABLE_RECENTS) != 0;
|
||||
// TODO: b/409075366 - ensure this signal is correctly set for external displays.
|
||||
return (mState & FLAG_DISABLE_RECENTS) != 0 && mContext.isPrimaryDisplay();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user