Why not this?
'''
if (mWebContents != 0 &&
    getXWalkWebChromeClient() != null &&
    getXWalkWebChromeClient().isFullscreen()) {
}
'''