As my understanding, here the code should be
```
if (hasFocus && xwalkView.isFullscreen()) {
}
```