diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2015-03-17 11:32:21 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2015-03-17 11:32:21 -0700 |
commit | 18bfaafd3da45dce7b5f73eaa1665f228353338c (patch) | |
tree | 073359b6fde40437e81f6eca493f0a84177957b7 /src/com/android/launcher3/DeviceProfile.java | |
parent | b4cd42a1df69ec887d0c66e8fe6fe1f27ebbf9bc (diff) | |
download | android_packages_apps_Trebuchet-18bfaafd3da45dce7b5f73eaa1665f228353338c.tar.gz android_packages_apps_Trebuchet-18bfaafd3da45dce7b5f73eaa1665f228353338c.tar.bz2 android_packages_apps_Trebuchet-18bfaafd3da45dce7b5f73eaa1665f228353338c.zip |
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
Diffstat (limited to 'src/com/android/launcher3/DeviceProfile.java')
-rw-r--r-- | src/com/android/launcher3/DeviceProfile.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index ddd300257..bc9ef763d 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -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; } |