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
Bug: 232907361
Change-Id: Ia09f674ada9e445c1d7278fa94c536ea9de13ef9
This commit is contained in:
Brian Isganitis
2022-05-23 18:11:47 -07:00
parent 06cda2df1e
commit 76900ac58a
7 changed files with 39 additions and 42 deletions
@@ -528,7 +528,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);
}