summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author William Xiao <wxyz@google.com> 2023-03-07 18:01:56 -0800
committer William Xiao <wxyz@google.com> 2023-03-07 18:31:39 -0800
commit69813c5b457da8a115f6f77677488c0d7eba0fcb (patch)
tree6d1b6c64276622299c4f47219de4a051b384f80b /libs/androidfw/StringPool.cpp
parent55395739d43304b1ab831ae5b406725cb0705407 (diff)
Ensure ordering of overlay callbacks
Before this CL, the DreamOverlayService in SysUI used an executor to run code in callbacks from the base class. However, this was not synchronized with the endDream call coming from OverlayClient in the base class. This meant that an endDream call could come in before or during the onStartDream implementation in SysUI, causing calls like shouldShowComplications and getDreamComponent to throw an exception since the overlay client was already disconnected. This change allows providing an executor to the base DreamOverlayService class that it will use to run callbacks coming from the OverlayClient over binder. This makes it so that endDream will not run before the onStartDream callback's contents run. Bug: 271374409 Test: atest DreamOverlayServiceTest Change-Id: I35a0badfc401d5224943e71fcc241b8a32698bea
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions