提交 bc826d32 编写于 作者: T Todd Volkert

Fix system ui overlays on Android. (#2728)

The logic was reversed -- we should only go into fullscreen if the
user didn't specify a TOP overlay, and we should only hide the
system ui navigation if the user didn't specify a BOTTOM overlay.
上级 8ab24b80
......@@ -60,10 +60,10 @@ public class SystemChromeImpl implements SystemChrome {
int flags = View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;
if ((overlays & SystemUiOverlay.TOP) != 0) {
if ((overlays & SystemUiOverlay.TOP) == 0) {
flags |= View.SYSTEM_UI_FLAG_FULLSCREEN;
}
if ((overlays & SystemUiOverlay.BOTTOM) != 0) {
if ((overlays & SystemUiOverlay.BOTTOM) == 0) {
flags |= View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册