mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Merge "Fixed overlap issue where toggle button gets overlapped by 3 button nav bar..now button shifts up so it's not totally obscured" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
32f1e89193
@@ -27,6 +27,7 @@ import android.os.UserHandle;
|
||||
import android.os.UserManager;
|
||||
import android.util.Log;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.WindowInsets;
|
||||
|
||||
import androidx.annotation.IntDef;
|
||||
import androidx.annotation.Nullable;
|
||||
@@ -147,6 +148,9 @@ public class WorkProfileManager implements PersonalWorkSlidingTabStrip.OnActiveP
|
||||
workFabMarginBottom +=
|
||||
mWorkModeSwitch.getResources().getDimensionPixelSize(R.dimen.qsb_widget_height);
|
||||
}
|
||||
if (!mAllApps.mActivityContext.getDeviceProfile().isGestureMode){
|
||||
workFabMarginBottom += mAllApps.mActivityContext.getDeviceProfile().getInsets().bottom;
|
||||
}
|
||||
((ViewGroup.MarginLayoutParams) mWorkModeSwitch.getLayoutParams()).bottomMargin =
|
||||
workFabMarginBottom;
|
||||
if (mWorkModeSwitch.getParent() != mAllApps) {
|
||||
@@ -158,7 +162,6 @@ public class WorkProfileManager implements PersonalWorkSlidingTabStrip.OnActiveP
|
||||
mWorkModeSwitch.updateCurrentState(mCurrentState == STATE_ENABLED);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes work profile toggle button from {@link BaseAllAppsContainerView}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user