Renaming PrefsStorage.resetPassword() to .removeEntry()

This commit is contained in:
Pelle Stenild Coltau 2017-06-28 15:40:56 +02:00
parent e07e571e63
commit 71f567d65a
2 changed files with 3 additions and 3 deletions

View File

@ -129,8 +129,8 @@ public class KeychainModule extends ReactContextBaseJavaModule {
cipherStorage.removeKey(service);
}
}
// And then we reset
prefsStorage.resetPassword(service);
// And then we remove the entry in the shared preferences
prefsStorage.removeEntry(service);
promise.resolve(true);
} catch (KeyStoreAccessException e) {

View File

@ -46,7 +46,7 @@ public class PrefsStorage {
return null;
}
public void resetPassword(String service) {
public void removeEntry(String service) {
service = service == null ? EMPTY_STRING : service;
String keyForUsername = getKeyForUsername(service);