Merge "Improve rotationForActivityInDifferentOrientation." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2c2aeb0941
@@ -1710,12 +1710,9 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
|
|||||||
return ROTATION_UNDEFINED;
|
return ROTATION_UNDEFINED;
|
||||||
}
|
}
|
||||||
if (activityOrientation == ActivityInfo.SCREEN_ORIENTATION_BEHIND) {
|
if (activityOrientation == ActivityInfo.SCREEN_ORIENTATION_BEHIND) {
|
||||||
// TODO(b/266280737): Use ActivityRecord#canDefineOrientationForActivitiesAbove
|
|
||||||
final ActivityRecord nextCandidate = getActivity(
|
final ActivityRecord nextCandidate = getActivity(
|
||||||
a -> a.getOverrideOrientation() != SCREEN_ORIENTATION_UNSET
|
a -> a.canDefineOrientationForActivitiesAbove() /* callback */,
|
||||||
&& a.getOverrideOrientation()
|
r /* boundary */, false /* includeBoundary */, true /* traverseTopToBottom */);
|
||||||
!= ActivityInfo.SCREEN_ORIENTATION_BEHIND,
|
|
||||||
r, false /* includeBoundary */, true /* traverseTopToBottom */);
|
|
||||||
if (nextCandidate != null) {
|
if (nextCandidate != null) {
|
||||||
r = nextCandidate;
|
r = nextCandidate;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user