Merge "Fix work toggle button to be placed where it should be." into tm-qpr-dev am: 111473315d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18841742 Change-Id: I5aad39dcdadf270c45255edbedfcf32a512285aa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -158,10 +158,10 @@ public class WorkProfileManager implements PersonalWorkSlidingTabStrip.OnActiveP
|
||||
workFabMarginBottom += mAllApps.mActivityContext.getDeviceProfile().getInsets().bottom;
|
||||
}
|
||||
lp.bottomMargin = workFabMarginBottom;
|
||||
int totalScreenWidth = mDeviceProfile.widthPx;
|
||||
int allAppsContainerWidth = mAllApps.getVisibleContainerView().getWidth();
|
||||
int personalWorkTabWidth =
|
||||
mAllApps.mActivityContext.getAppsView().getFloatingHeaderView().getTabWidth();
|
||||
lp.rightMargin = lp.leftMargin = (totalScreenWidth - personalWorkTabWidth) / 2;
|
||||
lp.rightMargin = lp.leftMargin = (allAppsContainerWidth - personalWorkTabWidth) / 2;
|
||||
if (mWorkModeSwitch.getParent() != mAllApps) {
|
||||
mAllApps.addView(mWorkModeSwitch);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user