Skip button layout spacing call when kids nav bar is active.

Fix: 240530037
Test: manual.
Change-Id: Ibf777dfdaab3c81da8feed581a0297f09a62539d
This commit is contained in:
Pat Manning
2022-08-01 15:10:24 +01:00
parent 67fe05beaf
commit f3783291ec

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();