Merge "wifi: catch UnsupportedOperationException for getMatchingWifiConfig"
am: ae3bae715e
Change-Id: If47b5c5fae03ad2e6a68771da893acaad743fcbd
This commit is contained in:
@ -394,9 +394,13 @@ public class WifiTracker {
|
||||
// the given ScanResult. This is used for showing that a given AP
|
||||
// (ScanResult) is available via a Passpoint provider (provider friendly
|
||||
// name).
|
||||
WifiConfiguration config = mWifiManager.getMatchingWifiConfig(result);
|
||||
if (config != null) {
|
||||
accessPoint.update(config);
|
||||
try {
|
||||
WifiConfiguration config = mWifiManager.getMatchingWifiConfig(result);
|
||||
if (config != null) {
|
||||
accessPoint.update(config);
|
||||
}
|
||||
} catch (UnsupportedOperationException e) {
|
||||
// Passpoint not supported on the device.
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user