Merge "Skip button layout spacing call when kids nav bar is active." into tm-qpr-dev

This commit is contained in:
Pat Manning
2022-08-05 23:29:24 +00:00
committed by Android (Google) Code Review

View File

@@ -676,9 +676,11 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
updateButtonLayoutSpacing();
}
/** Adds the correct spacing to 3 button nav container. No-op if using gesture nav */
/**
* Adds the correct spacing to 3 button nav container. No-op if using gesture nav or kids mode.
*/
private void updateButtonLayoutSpacing() {
if (!mContext.isThreeButtonNav()) {
if (!mContext.isThreeButtonNav() || mContext.isNavBarKidsModeActive()) {
return;
}
DeviceProfile dp = mContext.getDeviceProfile();