Repository navigation
This release refines -layout with two improvements: it no longer disrupts other accessibility services while running, and it now exposes the position of slider controls.
🐛 Fixes
- Preserve other accessibility services during
-layout(#66)
-layoutwas bindingUiAutomationwithoutFLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES, which made the system tear down any other accessibility service on the device for the duration of every call. The connection now usesconnect(int)with the flag on Android 7.0+, so services like TalkBack stay bound end-to-end. Devices on Android 5.0–6.0 keep the previous behavior.
🚀 New Features
-
Slider position in
-layoutoutput (#67)
Slider-like nodes (SeekBar,ProgressBar) now carry their range and current value:<node text="" class="android.widget.SeekBar" content-desc="Media volume" bounds="[189,658][1038,784]" resource-id="android:id/seekbar" range-min="0" range-max="15" range-current="8" state-desc="53%"/>
range-min/range-max/range-currentcome fromAccessibilityNodeInfo.getRangeInfo()and are only written for nodes that have one.state-descis added on Android 11+ where the platform exposes a human-readable form such as53%.- Nodes without a range are dumped exactly as before, so existing consumers keep working unchanged.
Contributors