Switch from KeyStore.saw to KeyStore.list.
KeyStore.saw was renamed to KeyStore.list for clarity. The implementation of both methods is exactly the same. Bug: 18088752 Change-Id: I2f171a4b7479683d5af898ebdf1b6f8a741536d1
This commit is contained in:
@@ -395,7 +395,7 @@ public class VpnSettings extends SettingsPreferenceFragment implements
|
||||
}
|
||||
|
||||
// We are the only user of profiles in KeyStore so no locks are needed.
|
||||
for (String key : keyStore.saw(Credentials.VPN)) {
|
||||
for (String key : keyStore.list(Credentials.VPN)) {
|
||||
final VpnProfile profile = VpnProfile.decode(key, keyStore.get(Credentials.VPN + key));
|
||||
if (profile != null && !ArrayUtils.contains(excludeTypes, profile.type)) {
|
||||
result.add(profile);
|
||||
|
Reference in New Issue
Block a user