From 638ae6d1120a9fb142807b45972a70a3e8b64c4e Mon Sep 17 00:00:00 2001 From: Daichi Hirono Date: Wed, 18 Dec 2019 13:59:58 +0900 Subject: 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 --- core/java/android/view/SurfaceControl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 @@ -440,11 +440,17 @@ 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 -- cgit v1.2.3-59-g8ed1b