mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Have separate DeviceProfile instances for taskbar and all apps windows.
We want to scale down the DeviceProfile for taskbar, but the all apps window should rely on the original DeviceProfile. Test: Manual Fix: 232907361 Change-Id: Ia09f674ada9e445c1d7278fa94c536ea9de13ef9 Merged-In: Ia09f674ada9e445c1d7278fa94c536ea9de13ef9
This commit is contained in:
@@ -522,7 +522,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
if (button.getVisibility() == View.VISIBLE) {
|
||||
parent.getDescendantRectRelativeToSelf(button, mTempRect);
|
||||
if (mHitboxExtender.extendedHitboxEnabled()) {
|
||||
mTempRect.bottom += mContext.mDeviceProfile.getTaskbarOffsetY();
|
||||
mTempRect.bottom += mContext.getDeviceProfile().getTaskbarOffsetY();
|
||||
}
|
||||
outRegion.op(mTempRect, Op.UNION);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user