summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Beth Thibodeau <ethibodeau@google.com> 2022-05-27 15:35:48 -0500
committer Beth Thibodeau <ethibodeau@google.com> 2022-05-27 15:42:49 -0500
commitfc384f5a1801403c5559f041122eb36c34f3f27f (patch)
tree2c745edb138dc9cc469ab5826ec2a83caeb8e5dc /libs/androidfw/StringPool.cpp
parent133c2347bcfe8a78fb71c2fc2597194a9340d743 (diff)
Add check for null token when updating state
MediaController requires a non-null token as input, which updateState did not check before calling. The token is required to be non-null already for active media, but it can be null for resume players, so it's possible for users to hit a race condition between the notification removal (token set to null) and a final PlaybackState update (attempting to use the token). Also added an annotation to the MediaControllerFactory method so that Kotlin code is aware of this requirement. Fixes: 231733532 Test: atest MediaDataManagerTest Change-Id: Id5e4a52cba74fafa04331a663cd4ce870fe920a2
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions