Moving taskbar variables in DeviceProfile to their own class

Bug: 419264653
Flag: EXEMPT refactor
Test: DeviceProfileDumpTest
Test: All Image tests
Change-Id: I05ec9e15ef02096326596af4835adb706473a736
This commit is contained in:
Sebastian Franco authored and Sebastián Franco committed 2025-05-29 11:04:06 -07:00
1 parent 4f08a7a40e
commit 8244449a9f
31 files changed
+239 -131

No files matched your search

@@ -163,9 +163,14 @@ public class TaskbarDragLayerController implements TaskbarControllers.LoggableTa
* @return Bounds (in TaskbarDragLayer coordinates) where an opened Folder can display.
*/
public Rect getFolderBoundingBox() {
Rect boundingBox = new Rect(0, 0, mTaskbarDragLayer.getWidth(),
mTaskbarDragLayer.getHeight() - mActivity.getDeviceProfile().taskbarHeight
- mActivity.getDeviceProfile().taskbarBottomMargin);
Rect boundingBox = new Rect(
0,
0,
mTaskbarDragLayer.getWidth(),
mTaskbarDragLayer.getHeight()
- mActivity.getDeviceProfile().getTaskbarProfile().getHeight()
- mActivity.getDeviceProfile().getTaskbarProfile().getBottomMargin()
);
boundingBox.inset(mFolderMargin, mFolderMargin);
return boundingBox;
}
@@ -352,7 +357,7 @@ public class TaskbarDragLayerController implements TaskbarControllers.LoggableTa
deviceProfile.getDisplayInfo().currentSize.y :
taskbarDimensions.y;
} else {
return deviceProfile.taskbarHeight;
return deviceProfile.getTaskbarProfile().getHeight();
}
}