From edb286f9afd11d7c137461643e005b7a65891b49 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 30 Jan 2016 04:27:14 -0500 Subject: [PATCH] Hide the mouse on the main thread just to be safe --- app/src/main/java/com/limelight/Game.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/limelight/Game.java b/app/src/main/java/com/limelight/Game.java index b2b79b06..71e61e46 100644 --- a/app/src/main/java/com/limelight/Game.java +++ b/app/src/main/java/com/limelight/Game.java @@ -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); }