summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2024-02-08 01:23:54 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2024-02-08 18:25:14 +0000
commitd390e326ee4e649c122aee51620ba490756740f2 (patch)
tree80edaf85ba06f1701720e35d261be4fc4bc65f1e /libs/androidfw/FileStream.cpp
parenta3c870d1d6f15719a9ef6edb6650c3867c2c6137 (diff)
PointerIcon: Load all animation frames using the same resources
It seems like it's possible for display metrics to change while an animation drawable is being loaded. If that happens, some animation frames can be a different size than others, which is unexpected. To avoid this from happening, use a single Resources object to load all frames from an animation drawable, and hopefully the metrics associated with the Resources won't change while the frames are being loaded. Bug: 321324470 Test: speculative fix Change-Id: I5f9f3b36dd050006bebbaab06f2c17381d3228fa
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions