io/router: [API] make SemanticID a uint, not uint64

4 billion semantic IDs should be enough for everyone.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2023-10-07 19:20:06 -05:00
parent 3648bdc02a
commit 60bfb9e064
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -750,7 +750,6 @@ func (w *window) initAccessibilityNodeInfo(env *C.JNIEnv, sem router.SemanticNod
}
func (w *window) virtualIDFor(id router.SemanticID) C.jint {
// TODO: Android virtual IDs are 32-bit Java integers, but childID is a int64.
if id == w.semantic.rootID {
return HOST_VIEW_ID
}
+1 -1
View File
@@ -88,7 +88,7 @@ const (
// SemanticID uniquely identifies a SemanticDescription.
//
// By convention, the zero value denotes the non-existent ID.
type SemanticID uint64
type SemanticID uint
type handlerEvents struct {
handlers map[event.Tag][]event.Event