Separate rotationHint as different object of WindowBounds

Some WindowBounds object with different rotation would be ignore in
DisplayController#supportedBounds due to there already exists an object
with the same bounds.

Bug: 304284870
Test: open app then rotate tablet device to 90 or 270, close app and
monitor the closing target flying back to the expected position.
Flag: N/A

Change-Id: I97f070cfaf7c6243ae3cd95cb728f7041a3736d1
This commit is contained in:
wilsonshih
2023-10-18 07:24:44 +00:00
parent c4f9dd2c04
commit ca129bc5ca
@@ -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