commit | 77ffe2074affbef2ff8876ae64d20f5923222de7 | [log] [tgz] |
---|---|---|
author | Doug Zongker <dougz@google.com> | Mon Jun 23 12:51:08 2014 -0700 |
committer | Doug Zongker <dougz@google.com> | Mon Jun 23 13:15:43 2014 -0700 |
tree | bb1dc307c2e50e5df94e485cd50018c5c2ffe663 | |
parent | 01e7c02174ef268b6d6daaa5a5bb4f752d55964c [diff] |
fix race condition in OperationScheduler OperationScheduler's toString() method got the set of keys from a SharedPreferences, and then did individual lookups of those keys assuming they would all succeed, but the shared prefs object can be mutated by a another thread while that is going on. Fix to take a snapshot with getAll() and then iterate over the snapshot. Bug: 15744821 Change-Id: I6a901ec7f4e632e149db3bf6c226f935bc152402