mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
key event focus logic should support large tablets
TL;DR;; On smaller tablets, landscape = vertical hotseat bar, and portrait = horizontal hotseat bar. However, in larger tablets, hotseat bar is always horizontal. This is now correctly handled using DeviceProfile.isVerticalBar method. b/19732584 Change-Id: I1035c89b4685be12dbc863f8a1465047a5fec6a6
This commit is contained in:
@@ -81,6 +81,7 @@ public class DeviceProfile {
|
||||
boolean isTablet;
|
||||
boolean isLargeTablet;
|
||||
boolean isLayoutRtl;
|
||||
|
||||
boolean transposeLayoutWithOrientation;
|
||||
|
||||
int desiredWorkspaceLeftRightMarginPx;
|
||||
@@ -699,6 +700,10 @@ public class DeviceProfile {
|
||||
return isLargeTablet;
|
||||
}
|
||||
|
||||
/**
|
||||
* When {@code true}, hotseat is on the bottom row when in landscape mode.
|
||||
* If {@code false}, hotseat is on the right column when in landscape mode.
|
||||
*/
|
||||
boolean isVerticalBarLayout() {
|
||||
return isLandscape && transposeLayoutWithOrientation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user