optimization forsetNativeFullscreen method