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:
parent
ad3dd07a7a
commit
f0a8d2edee
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user