Hide the mouse on the main thread just to be safe

This commit is contained in:
Cameron Gutman 2016-01-30 04:27:14 -05:00
parent fb15ff99ca
commit edb286f9af

View File

@ -888,10 +888,15 @@ public class Game extends Activity implements SurfaceHolder.Callback,
connecting = false;
connected = true;
// Hide the mouse cursor now. Doing it before
// dismissing the spinner seems to be undone
// when the spinner gets displayed.
NvMouseHelper.setCursorVisibility(this, false);
runOnUiThread(new Runnable() {
@Override
public void run() {
// Hide the mouse cursor now. Doing it before
// dismissing the spinner seems to be undone
// when the spinner gets displayed.
NvMouseHelper.setCursorVisibility(Game.this, false);
}
});
hideSystemUi(1000);
}