Loading src/com/android/launcher3/allapps/WorkProfileManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -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); } Loading Loading
src/com/android/launcher3/allapps/WorkProfileManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -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); } Loading