feat: Tablet support (ish)

This commit is contained in:
Pun Butrach committed 2026-01-10 20:51:14 +07:00
1 parent 6a514235f9
commit f12b88cb60
3 files changed
+12 -5

No files matched your search

+3 -3
View File
@@ -1849,7 +1849,7 @@ public class DeviceProfile {
} else {
hotseatBarPadding.left += qsbWidth;
}
} else if (isTaskbarPresent) {
} else if (isTaskbarPresent || isQsbInline) {
// Center the QSB vertically with hotseat
int hotseatBarBottomPadding = getHotseatBarBottomPadding();
int hotseatBarTopPadding =
@@ -1958,10 +1958,10 @@ public class DeviceProfile {
* Returns the number of pixels the QSB is translated from the bottom of the screen.
*/
public int getQsbOffsetY() {
if (isQsbInline) {
if (mDeviceProperties.isPhone() && isQsbInline) {
return getHotseatBarBottomPadding()
- ((getHotseatProfile().getQsbHeight() - hotseatCellHeightPx) / 2);
} else if (isTaskbarPresent) { // QSB on top
} else if (isTaskbarPresent || (mDeviceProperties.isLandscape() && isQsbInline)) { // QSB on top
return hotseatBarSizePx - getHotseatProfile().getQsbHeight()
+ getHotseatProfile().getQsbShadowHeight();
} else {