diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2016-09-16 23:43:38 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2016-09-17 00:57:38 +0900 |
commit | 2618c1b7f0c8816375e662b89eceb8b2c69237e7 (patch) | |
tree | c1378937d289398e8903c53fee47446d53270a7d /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 8041e897de1e95caec449353c9f2dca54a5f92fd (diff) |
Update the avoid bad wifi settings on the handler thread.
Currently, every call to avoidBadWifi fetches the current value
of the config variable and setting whenever it is called. This
means that the score of an unvalidated wifi network can
unpredictably change at any time, creating a data race.
Instead, persist the value and only update it when something
changes.
Bug: 31075769
Change-Id: I0f4e0e742c91ef77fabc95d3ebb494338396aca5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions