mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
The original calculation was including spacing in the the hotseatCellSize, but that causes us to incorrectly compute the hotseatIconCenter. If we take advantage of DeviceProfile.calculateCellWidth, we get the width without the spacing. Then we can add spacing for every icon to the left of the current one when figuring out the center. Test: Manual on tablet using device types tablet and multi display. Fix: 210123477 Change-Id: Ie182718ad3a229ffa8bae031f3ac7f73f8539f49