Merge "Display-level relative display rotation should be 0" into tm-qpr-dev

This commit is contained in:
Evan Rosky
2022-09-30 21:43:10 +00:00
committed by Android (Google) Code Review

View File

@@ -6729,4 +6729,11 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
DisplayContent asDisplayContent() { DisplayContent asDisplayContent() {
return this; return this;
} }
@Override
@Surface.Rotation
int getRelativeDisplayRotation() {
// Display is the root, so it's not rotated relative to anything.
return Surface.ROTATION_0;
}
} }