Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fd3b9c05 authored by Daniel Norman's avatar Daniel Norman
Browse files

Tech debt cleanup: Consolidates A11yService warning dialog.

Both frameworks/base and the Settings app define almost-identical copies
of a warning dialog shown when enabling an accessibility service.
The frameworks/base version was used for contexts outside of Settings
(e.g. while editing the volume key shortcut after triggering it with
2+ features already enabled) while the Settings version was used in
the Settings app.

This change replaces the frameworks/base implementation with the more
full-featured Settings implementation.
The other change in this topic in packages/apps/Settings changes
Settings to use this consolidated single version.

Feature flag:
`adb shell device_config override accessibility android.view.accessibility.deduplicate_accessibility_warning_dialog true`

Bug: 303511250
Test: Use this dialog in Accessibility Settings
Test: Use this dialog in the a11y volume-key shortcut editor
Test: atest AccessibilityServiceWarningTest
Test: atest AccessibilityShortcutChooserActivityTest
Change-Id: I6e1acf7cecfaa0dce422f7dfac3f270b9902dfe9
parent e6f0e3ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment