summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2023-12-15 12:05:12 +0000
committer Nicolo' Mazzucato <nicomazz@google.com> 2023-12-20 16:51:55 +0000
commitd61e267922a84edcfa890657fc401000af456576 (patch)
tree44152597ca75d15eb41e138365ee0667edf8ffa8 /libs/androidfw/StringPool.cpp
parente7e12e35d88777f22d6ada0efea10b0f334f64ea (diff)
Fix race in ScopedUnfoldTransitionProgressProvider
Callbacks were being added from the main thread, but the listener list was being read from the background thread used to generate unfold progress, causing a ConcurrentModificationException. Now the scoped provider creates an handler backed by the same looper as the received progress, and uses it to forward progresses. This makes it possible for the class to work even without explicitly injecting the handler to use to propagate progresses. + Adding many tests for ScopedUnfoldTransitionProgressProvider Flag: ACONFIG unfold_animation_background_progress DISABLED Bug: 316554882 Test: ScopedUnfoldTransitionProgressProviderTest Change-Id: I4d8ef19f0116e52b84e6689bddd096fa8fa468e4
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions