Rename updatePreferences() to upgradePreferences()

This is really an upgrade of the preference store and not an update of
values, it also is consistent with SQLiteOpenHelper.onUpgrade().
This commit is contained in:
Thialfihar
2015-07-04 19:32:39 +02:00
parent 86d95e4d40
commit 3b67c9d894
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ public class KeychainApplication extends Application {
setupAccountAsNeeded(this);
// Update keyserver list as needed
Preferences.getPreferences(this).updatePreferences();
Preferences.getPreferences(this).upgradePreferences();
TlsHelper.addStaticCA("pool.sks-keyservers.net", getAssets(), "sks-keyservers.netCA.cer");

View File

@@ -356,7 +356,7 @@ public class Preferences {
}
}
public void updatePreferences() {
public void upgradePreferences() {
if (mSharedPreferences.getInt(Constants.Pref.PREF_DEFAULT_VERSION, 0) !=
Constants.Defaults.PREF_VERSION) {
switch (mSharedPreferences.getInt(Constants.Pref.PREF_DEFAULT_VERSION, 0)) {