summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Jahdiel Alvarez <jahdiel@google.com> 2024-05-03 18:09:57 -0700
committer Jahdiel Alvarez <jahdiel@google.com> 2024-05-07 11:34:59 -0700
commit55f7f698764a3a857ca5dd209d2f6f9a1494a051 (patch)
treeae8946682917933a6ade1f24438600ce9a1f0f9d /libs/input/PointerController.cpp
parent22ed7392f91f13150eaed29a3b65ef62a2eae6fc (diff)
Refactored NMS to handle user switch via the onUserSwitching method
The NotificationManagerService listens for user switch events via the ACTION_USER_SWITCHED broadcast intent. This change refactors the logic to handle user switch events by overriding SystemService's onUserSwitching method. The onUserSwitching method is an earlier and more stable signal for user switch than the broadcast. SystemServices should rely on SystemService user lifecycle methods for user-aware operations. With respect to the stopping previous user apps feature, this results in the early killing ocurring after NotificationManagerService has handled the user switch events, which avoids it from restarting early killed packages. Test: atest NotificationManagerServiceTest Test: Manually run user switch on device Bug: 337077643 Bug: 323200731 Change-Id: I90c2ecb2fcfd0693bdc6c01aa9f4b83705e56ce8
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions