1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Update date formatter on when importing preferences.

This commit is contained in:
danapple 2011-02-26 19:28:47 -06:00
parent ad3dd07a7a
commit f0a8d2edee
2 changed files with 7 additions and 0 deletions

View File

@ -75,6 +75,11 @@ public class DateFormatter {
return sChosenFormat;
}
public static void clearChosenFormat()
{
sChosenFormat = null;
}
public static DateFormat getDateFormat(Context context) {
String formatString = getFormat(context);
return getDateFormat(context, formatString);

View File

@ -24,6 +24,7 @@ import android.util.Log;
import com.fsck.k9.K9;
import com.fsck.k9.Preferences;
import com.fsck.k9.helper.DateFormatter;
public class StorageImporter {
public static int importPreferences(Context context, String fileName, String encryptionKey) throws StorageImportExportException {
@ -68,6 +69,7 @@ public class StorageImporter {
}
editor.commit();
Preferences.getPreferences(context).refreshAccounts();
DateFormatter.clearChosenFormat();
K9.loadPrefs(Preferences.getPreferences(context));
return numAccounts;
} catch (SAXException se) {