Merge "Fix work toggle button that gets blocked by threeButton nav bar on TABLETS" into tm-qpr-dev am: 0130315860

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18798069

Change-Id: Ib1482fa6035b1701e4444b896797799d758dd653
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Brandon Dayauon
2022-06-23 22:09:17 +00:00
committed by Automerger Merge Worker
@@ -155,7 +155,12 @@ public class WorkProfileManager implements PersonalWorkSlidingTabStrip.OnActiveP
mWorkModeSwitch.getResources().getDimensionPixelSize(R.dimen.qsb_widget_height);
}
if (!mAllApps.mActivityContext.getDeviceProfile().isGestureMode){
workFabMarginBottom += mAllApps.mActivityContext.getDeviceProfile().getInsets().bottom;
if (mDeviceProfile.isTaskbarPresent){
workFabMarginBottom += mDeviceProfile.taskbarSize;
} else {
workFabMarginBottom +=
mAllApps.mActivityContext.getDeviceProfile().getInsets().bottom;
}
}
lp.bottomMargin = workFabMarginBottom;
int allAppsContainerWidth = mAllApps.getVisibleContainerView().getWidth();