commit | 91e630c4eeaa74b9843c3e384f770fa82e0270c4 | [log] [tgz] |
---|---|---|
author | Maggie <yiranwang@google.com> | Wed Jan 24 17:31:46 2018 -0800 |
committer | Maggie <yiranwang@google.com> | Thu Jan 25 13:55:41 2018 -0800 |
tree | 3d2b2e71cc27dbb23b0194f7c6dcd1b42c3c1f47 | |
parent | 877553e360462c739a600f426263794a11838022 [diff] |
Fix location QuickSettings bug Problem: LocationManager.getAllProviders() is only returning "network" for Quick Settings. The root cause is getAllProviders() method is filtering results by permission when it shouldn't. 1. Remove permission check logic in getAllProviders. 2. Exclude PASSIVE_PROVIDER from setLocationEnabled and getLocationEnabled. Bug: 72495506 Test: Robo Test: Manual Change-Id: I37a2238d094ffbdff788e90b71d1e70b81fca79a