Commit 8e8db97d authored by Ignacio García's avatar Ignacio García

P4A-923 Refactor clase and method names.

Add comment about class working.
parent 05e74e59
......@@ -41,7 +41,7 @@ import com.fsck.k9.mail.Message;
import com.fsck.k9.mail.internet.BinaryTempFileBody;
import com.fsck.k9.mail.ssl.LocalKeyStore;
import com.fsck.k9.mailstore.LocalStore;
import com.fsck.k9.pEp.P4A923Fix;
import com.fsck.k9.pEp.OldVersionsStorageCleaner;
import com.fsck.k9.pEp.PEpProvider;
import com.fsck.k9.pEp.PEpProviderFactory;
import com.fsck.k9.pEp.infrastructure.Poller;
......@@ -645,8 +645,8 @@ public class K9 extends MultiDexApplication {
checkCachedDatabaseVersion();
Preferences prefs = Preferences.getPreferences(this);
// TODO: 2020-02-12 P4A923Fix To be removed in app version 1.2
P4A923Fix.fixP4A923(prefs.getStorage(),this);
// TODO: 2020-02-12 OldVersionsStorageCleaner To be removed in app version 1.2
OldVersionsStorageCleaner.cleanLeftovers(prefs.getStorage(),this);
loadPrefs(prefs);
/*
......
......@@ -111,7 +111,7 @@ public class StorageManager {
File getAttachmentDirectory(Context context, String id);
/**
* TODO: 2020-02-12 P4A923Fix To be removed in app version 1.2
* TODO: 2020-02-12 OldVersionsStorageCleaner To be removed in app version 1.2
* @param context
* @param id
* @return
......@@ -234,7 +234,7 @@ public class StorageManager {
}
/**
* TODO: 2020-02-12 P4A923Fix To be removed in app version 1.2
* TODO: 2020-02-12 OldVersionsStorageCleaner To be removed in app version 1.2
* @param context
* @param id
* @return
......@@ -313,7 +313,7 @@ public class StorageManager {
}
/**
* TODO: 2020-02-12 P4A923Fix To be removed in app version 1.2
* TODO: 2020-02-12 OldVersionsStorageCleaner To be removed in app version 1.2
* @param context
* @param id
* @return
......@@ -399,7 +399,7 @@ public class StorageManager {
}
/**
* TODO: 2020-02-12 P4A923Fix To be removed in app version 1.2
* TODO: 2020-02-12 OldVersionsStorageCleaner To be removed in app version 1.2
* @param context
* @param id
* @return
......@@ -645,7 +645,7 @@ public class StorageManager {
}
/**
* TODO: 2020-02-12 P4A923Fix To be removed in app version 1.2
* TODO: 2020-02-12 OldVersionsStorageCleaner To be removed in app version 1.2
* @param dbName
* @param providerId
* @return
......
......@@ -5,14 +5,15 @@ import com.fsck.k9.mailstore.StorageManager
import com.fsck.k9.preferences.Storage
/**
* TODO: 2020-02-12 P4A923Fix To be removed in app version 1.2
* TODO: 2020-02-12 OldVersionsStorageCleaner To be removed in app version 1.2
* Fix for issue P4A-923: Clean preferences_storage file and old duplicate account files.
* This is an issue that can be found in pEp versions previous to 1.0.232.
*/
class P4A923Fix {
class OldVersionsStorageCleaner {
companion object {
@JvmStatic
fun fixP4A923(storage: Storage, context: Context) {
fun cleanLeftovers(storage: Storage, context: Context) {
val fixP4A923Done = storage.getBoolean("fixP4A923Done", false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment