summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorBryan Mawhinney <bryanmawhinney@google.com>2017-02-07 15:18:07 +0000
committerBryan Mawhinney <bryanmawhinney@google.com>2017-02-13 18:29:57 +0000
commite7aadaaa3a24218e4ccd823cd82c8cdf6f49b601 (patch)
treee00ba2d766277ae35796901cf94de1c533af7529 /tools/aapt2/diff/Diff.cpp
parentc342666ac8c4e666894223a2a9ddd54c24693734 (diff)
Workaround wallpaper restore race
If WallpaperManager is asked to read a wallpaper between when we call mWm.clear and mWm.setStream, it is possible for us to end up losing restored state such as cropHint and allowBackup By not calling mWm.clear, we make this much less likely to happen. It isn't necessary to call clear, as will explicitly overwrite all the interesting state anyway. Test: by repeated adb restore Bug: 34760753 Change-Id: I2750695d5dd16077b47b5b8fca3a667b98cc4f6c (cherry picked from commit 5c14853296172fe9885eee26d86351bd935e8430)
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions