summaryrefslogtreecommitdiff
path: root/services/accessibility/accessibility.aconfig
diff options
context:
space:
mode:
author Idriss Juhoor <idriss@google.com> 2024-05-29 13:25:33 +0000
committer Idriss Juhoor <idriss@google.com> 2024-05-29 13:25:33 +0000
commit4434526cf51ef1fd7de01e6c52ef19c591dbbac7 (patch)
tree5aac0ca50051845ed4450676099c94b5c764a7ec /services/accessibility/accessibility.aconfig
parent9339e7699006ff7b6ae21f7086fef5734e73f329 (diff)
Fix the initialization issue in AccessibilityManager
There is an issue when the AccessibilityManagerService receives the onSomePackageChange callback before the UserSwitch signal. The service would be marked as initialized, but it would not load the services when the switch user signal would be later received. This patch ensures the onSomePackageChanged is handled only after the service is initialized. Bug: 340927041 Test: atest AccessibilityEndToEndTest Test: AccessibilityManagerServiceTest in presubmit Change-Id: I99fba0d08cb0ca5f2e24c104d1a7735109955683
Diffstat (limited to 'services/accessibility/accessibility.aconfig')
-rw-r--r--services/accessibility/accessibility.aconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/services/accessibility/accessibility.aconfig b/services/accessibility/accessibility.aconfig
index 1c57dd3f5d5a..93531508b3eb 100644
--- a/services/accessibility/accessibility.aconfig
+++ b/services/accessibility/accessibility.aconfig
@@ -220,3 +220,13 @@ flag {
description: "Feature allows users to change color correction saturation for daltonizer."
bug: "322829049"
}
+
+flag {
+ name: "skip_package_change_before_user_switch"
+ namespace: "accessibility"
+ description: "Skip onSomePackageChanged callback if the SwitchUser signal is not received yet."
+ bug: "340927041"
+ metadata {
+ purpose: PURPOSE_BUGFIX
+ }
+}