Skip to content

[Bug]Accessibility Service shown as disabled even when it is already enabled #11

@jpgjm

Description

@jpgjm

Describe the bug

After granting accessibility permission and using the app for a while,
the UI incorrectly shows the accessibility service as disabled,
even though it is still enabled in system settings.

screen-20260527-140552.mp4

Root cause

isAccessibilityEnabled() is only re-checked on ON_RESUME.
If the Compose state is reset (e.g. activity recreation, memory pressure),
the stale value (false) is never corrected until the user leaves and returns.

Suggested fix

  1. Use AccessibilityManager.getEnabledAccessibilityServiceList()
    instead of string-parsing Settings.Secure — more reliable API.

  2. Add a ContentObserver on ENABLED_ACCESSIBILITY_SERVICES
    to detect changes in real-time, not only on resume.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions