Skip to content

Commit 08ce91a

Browse files
Dianne HackbornAndroid Git Automerger
authored andcommitted
am 7eda9de: am 2fe5718: am 30eec83: Merge "Transparent activity orientation problem when previous landsacpe fullscreen activity not yet destroyed."
* commit '7eda9de1a638e4ed1ce5dc65fecd673400b9f3c0': Transparent activity orientation problem when previous landsacpe fullscreen activity not yet destroyed.
2 parents 4a900a6 + 7eda9de commit 08ce91a

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

services/java/com/android/server/wm/WindowManagerService.java

100644100755
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3557,17 +3557,7 @@ public int getOrientationFromAppTokensLocked() {
35573557
continue;
35583558
}
35593559

3560-
if (!haveGroup) {
3561-
// We ignore any hidden applications on the top.
3562-
if (wtoken.hiddenRequested || wtoken.willBeHidden) {
3563-
if (DEBUG_ORIENTATION) Slog.v(TAG, "Skipping " + wtoken
3564-
+ " -- hidden on top");
3565-
continue;
3566-
}
3567-
haveGroup = true;
3568-
curGroup = wtoken.groupId;
3569-
lastOrientation = wtoken.requestedOrientation;
3570-
} else if (curGroup != wtoken.groupId) {
3560+
if (haveGroup == true && curGroup != wtoken.groupId) {
35713561
// If we have hit a new application group, and the bottom
35723562
// of the previous group didn't explicitly say to use
35733563
// the orientation behind it, and the last app was
@@ -3580,6 +3570,20 @@ public int getOrientationFromAppTokensLocked() {
35803570
return lastOrientation;
35813571
}
35823572
}
3573+
3574+
// We ignore any hidden applications on the top.
3575+
if (wtoken.hiddenRequested || wtoken.willBeHidden) {
3576+
if (DEBUG_ORIENTATION) Slog.v(TAG, "Skipping " + wtoken
3577+
+ " -- hidden on top");
3578+
continue;
3579+
}
3580+
3581+
if (!haveGroup) {
3582+
haveGroup = true;
3583+
curGroup = wtoken.groupId;
3584+
lastOrientation = wtoken.requestedOrientation;
3585+
}
3586+
35833587
int or = wtoken.requestedOrientation;
35843588
// If this application is fullscreen, and didn't explicitly say
35853589
// to use the orientation behind it, then just take whatever

0 commit comments

Comments
 (0)