summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/util/WindowBounds.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/util/WindowBounds.java')
-rw-r--r--src/com/android/launcher3/util/WindowBounds.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/launcher3/util/WindowBounds.java b/src/com/android/launcher3/util/WindowBounds.java
index 91480e17c4..84a3e7a446 100644
--- a/src/com/android/launcher3/util/WindowBounds.java
+++ b/src/com/android/launcher3/util/WindowBounds.java
@@ -67,7 +67,8 @@ public class WindowBounds {
return false;
}
WindowBounds other = (WindowBounds) obj;
- return other.bounds.equals(bounds) && other.insets.equals(insets);
+ return other.bounds.equals(bounds) && other.insets.equals(insets)
+ && other.rotationHint == rotationHint;
}
@Override
@@ -84,7 +85,7 @@ public class WindowBounds {
* Returns true if the device is in landscape orientation
*/
public final boolean isLandscape() {
- return availableSize.x > availableSize.y;
+ return bounds.width() > bounds.height();
}
/**