Check mAttachInfo.mSystemUiVisibility to see if a SysUI flag exists
Previously, we checked info.globalVisibility to see if a system UI flag exists, but since updateCompatSysUiVisibility can process more than one type of one system bar, info.globalVisibility might be changed by one type before the other type checks it. For example, if we process ITYPE_CLIMATE_BAR first with visible=true and hasControl=false, and then, when we process ITYPE_STATUS_BAR with visible=true and hasControl=true, we cannot clear SYSTEM_UI_FLAG_FULLSCREEN by setting it to info.localChanges, because wasVisible is false now. Fix: 226555579 Bug: 225765490 Test: atest WindowInsetsControllerTests Change-Id: I820842c7fe14fc47141a4fa09cfddf68f89dbd41
Loading
Please register or sign in to comment