commit | b1a65ee161d2dd1bb5fee752659350d43102fd0c | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Mon Feb 08 10:12:01 2016 -0800 |
committer | Felipe Leme <felipeal@google.com> | Mon Feb 08 12:39:44 2016 -0800 |
tree | 812868082563fc4aafe11a9090f26043d8e6c5ec | |
parent | ed330c7f7d98eabce8562ce34d5877a323c745ac [diff] |
Changed list metered-networks so it returns all networks. Prior to this change it was relying on NMPS.getNetworkPolicies(), which would not return networks that never had any policy attribute (like metered) set. This change fix this problem by also querying the WifiManager for the list of saved wi-fi networks. In fact, the new logic is very similar to what's done on SettingLib's NetworkPolicyEditor. BUG: 26685616 Change-Id: I42f37de3a7367718036f45b15c6b5d37b67e7d01