Skip to content

v1.1.3

Latest

Choose a tag to compare

@ysbing ysbing released this 30 Sep 07:22

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)
    -layout was binding UiAutomation without FLAG_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 uses connect(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 -layout output (#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-current come from AccessibilityNodeInfo.getRangeInfo() and are only written for nodes that have one.
    • state-desc is added on Android 11+ where the platform exposes a human-readable form such as 53%.
    • Nodes without a range are dumped exactly as before, so existing consumers keep working unchanged.

Contributors

@elementor-i