summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Daichi Hirono <hirono@google.com> 2019-12-18 13:59:58 +0900
committer Daichi Hirono <hirono@google.com> 2019-12-23 11:07:01 +0900
commit638ae6d1120a9fb142807b45972a70a3e8b64c4e (patch)
treedf593ee6b145c4e5fe3dd4bd0f6b6b7b7394a778
parent7252d9933a6d6200e031e05d63b86845b2fa0a3b (diff)
Fix layer metadata key for a11y ID.
Index 4 has already been used for METADATA_MOUSE_CURSOR. The CL fixes the index for a11y ID from 4 to 5. Bug: 143734779 Test: None Change-Id: I295f8d327101c58c0034cf2a39d428d2bb397d0b
-rw-r--r--core/java/android/view/SurfaceControl.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/java/android/view/SurfaceControl.java b/core/java/android/view/SurfaceControl.java
index c566eaefa0aa..069d5378d2c8 100644
--- a/core/java/android/view/SurfaceControl.java
+++ b/core/java/android/view/SurfaceControl.java
@@ -441,10 +441,16 @@ public final class SurfaceControl implements Parcelable {
public static final int METADATA_TASK_ID = 3;
/**
+ * The style of mouse cursor and hotspot.
+ * @hide
+ */
+ public static final int METADATA_MOUSE_CURSOR = 4;
+
+ /**
* Accessibility ID to allow association between surfaces and accessibility tree.
* @hide
*/
- public static final int METADATA_ACCESSIBILITY_ID = 4;
+ public static final int METADATA_ACCESSIBILITY_ID = 5;
/**
* A wrapper around GraphicBuffer that contains extra information about how to