commit | e8befb35313e37f519ef61b35669d848eb464437 | [log] [tgz] |
---|---|---|
author | tiger_huang <tiger_huang@htc.com> | Mon Jun 29 17:17:30 2015 +0800 |
committer | Tiger Huang <tiger_huang@htc.com> | Mon Jun 29 09:22:01 2015 +0000 |
tree | 1a02ecf583e217b1d78a8dbf4713d9b94f1cfcb3 | |
parent | 78db19c25a3a18d9ccf19b91be17e791e4fd782c [diff] |
Use the correct lock to protect members in PolicyControl Members in PolicyControl can be accessed by multiple threads via the public functions called by PhoneWindowManager. Most of the functions are called with the window-manager-lock held, but reloadFromSetting() is an exception. In this patch, we acquire the window-manager-lock before calling reloadFromSetting() to ensure accessing the members with the same lock held. Change-Id: I54ac5cab2a2d74c568fa96145f7a6741c6d99e36