commit | 5269a116ff1e27d51f7af31d8a90567b76917fe3 | [log] [tgz] |
---|---|---|
author | Peter Qiu <zqiu@google.com> | Mon Mar 27 13:45:25 2017 -0700 |
committer | gitbuildkicker <android-build@google.com> | Mon Mar 27 16:38:34 2017 -0700 |
tree | 37ab44a15821690d72dcec7fc3d703468b6cdbc7 | |
parent | d3a95351edb69de97e28e9048226068557293ae5 [diff] |
wifi: catch UnsupportedOperationException for getMatchingWifiConfig On a device without Passpoint support, an UnsupportedOperationException will be thrown when invoking WifiManager#getMatchingWifiConfig. So catch it to avoid crash. Bug: 36649203 Test: manually set config_wifi_hotspot2_enabled to false and verify Settings app doesn't crash Change-Id: I69f37897449033da9d21edda9953ad2738f7e314 (cherry picked from commit 0ffb89d1d1ebcd6388ee99652beaedd4c11ea3d4)