summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DeviceProfile.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2015-03-17 11:32:21 -0700
committerHyunyoung Song <hyunyoungs@google.com>2015-03-17 11:32:21 -0700
commit18bfaafd3da45dce7b5f73eaa1665f228353338c (patch)
tree073359b6fde40437e81f6eca493f0a84177957b7 /src/com/android/launcher3/DeviceProfile.java
parentb4cd42a1df69ec887d0c66e8fe6fe1f27ebbf9bc (diff)
downloadandroid_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.java5
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;
}