Skip to content

Commit c516a5c

Browse files
author
Craig Mautner
committed
Only consider hiddenRequested when deciding layout
This change removes the test for hidden when deciding whether to do a layout. So layout begins as soon as hiddenRequested occurs. Since hidden is cleared when animations starts considering hidden in the layout decision will delay layout until it is too late. In particular we were not executing a relayout on return to an activity even though the screen had been rotated while away. Fixes bug 6615859. Change-Id: I5fb0b4bf2c253b910a7a192da04419236d8f09d9
1 parent f008ab7 commit c516a5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ public boolean isGoneForLayoutLw() {
806806
return mViewVisibility == View.GONE
807807
|| !mRelayoutCalled
808808
|| (atoken == null && mRootToken.hidden)
809-
|| (atoken != null && (atoken.hiddenRequested || atoken.hidden))
809+
|| (atoken != null && atoken.hiddenRequested)
810810
|| mAttachedHidden
811811
|| mExiting || mDestroying;
812812
}

0 commit comments

Comments
 (0)