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;
|
||||
}
|
||||
if (activityOrientation == ActivityInfo.SCREEN_ORIENTATION_BEHIND) {
|
||||
// TODO(b/266280737): Use ActivityRecord#canDefineOrientationForActivitiesAbove
|
||||
final ActivityRecord nextCandidate = getActivity(
|
||||
a -> a.getOverrideOrientation() != SCREEN_ORIENTATION_UNSET
|
||||
&& a.getOverrideOrientation()
|
||||
!= ActivityInfo.SCREEN_ORIENTATION_BEHIND,
|
||||
r, false /* includeBoundary */, true /* traverseTopToBottom */);
|
||||
a -> a.canDefineOrientationForActivitiesAbove() /* callback */,
|
||||
r /* boundary */, false /* includeBoundary */, true /* traverseTopToBottom */);
|
||||
if (nextCandidate != null) {
|
||||
r = nextCandidate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user