OSDN Git Service

Add stub for setCursorVisibility
authorAaron Kling <webgeek1234@gmail.com>
Mon, 13 Nov 2017 05:53:54 +0000 (23:53 -0600)
committerAaron Kling <webgeek1234@gmail.com>
Mon, 13 Nov 2017 05:53:54 +0000 (23:53 -0600)
This is called by an Nvidia Shield exclusive game which crashes
if the function is not found.

Change-Id: I2aea38ad8d9dab046f351e18a91b2418d8a982b2

core/java/android/hardware/input/InputManager.java

index 803337b..ea78b75 100644 (file)
@@ -1005,6 +1005,16 @@ public final class InputManager {
     }
 
     /**
+     * Set cursor visibility. By default the cursor is visible but it can be hidden
+     * by calling this method. The cursor settings are not saved when an activity is
+     * paused. For this reason, an app must call this method everytime it is resumed.
+     * @hide
+     */
+    public void setCursorVisibility(boolean visible) {
+        /* stub */
+    }
+
+    /**
      * Listens for changes in input devices.
      */
     public interface InputDeviceListener {