Merge "Check null for top activity when updating orientation" into tm-qpr-dev am: fc18585969
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21218459 Change-Id: I3b56427fb7440bece3679af07cbe8a517893d5dd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1679,7 +1679,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
|
|||||||
}
|
}
|
||||||
// The orientation source may not be the top if it uses SCREEN_ORIENTATION_BEHIND.
|
// The orientation source may not be the top if it uses SCREEN_ORIENTATION_BEHIND.
|
||||||
final ActivityRecord topCandidate = !r.isVisibleRequested() ? topRunningActivity() : r;
|
final ActivityRecord topCandidate = !r.isVisibleRequested() ? topRunningActivity() : r;
|
||||||
if (handleTopActivityLaunchingInDifferentOrientation(
|
if (topCandidate != null && handleTopActivityLaunchingInDifferentOrientation(
|
||||||
topCandidate, r, true /* checkOpening */)) {
|
topCandidate, r, true /* checkOpening */)) {
|
||||||
// Display orientation should be deferred until the top fixed rotation is finished.
|
// Display orientation should be deferred until the top fixed rotation is finished.
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user