mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12: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;
|
return sChosenFormat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void clearChosenFormat()
|
||||||
|
{
|
||||||
|
sChosenFormat = null;
|
||||||
|
}
|
||||||
|
|
||||||
public static DateFormat getDateFormat(Context context) {
|
public static DateFormat getDateFormat(Context context) {
|
||||||
String formatString = getFormat(context);
|
String formatString = getFormat(context);
|
||||||
return getDateFormat(context, formatString);
|
return getDateFormat(context, formatString);
|
||||||
|
@ -24,6 +24,7 @@ import android.util.Log;
|
|||||||
|
|
||||||
import com.fsck.k9.K9;
|
import com.fsck.k9.K9;
|
||||||
import com.fsck.k9.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
|
import com.fsck.k9.helper.DateFormatter;
|
||||||
|
|
||||||
public class StorageImporter {
|
public class StorageImporter {
|
||||||
public static int importPreferences(Context context, String fileName, String encryptionKey) throws StorageImportExportException {
|
public static int importPreferences(Context context, String fileName, String encryptionKey) throws StorageImportExportException {
|
||||||
@ -68,6 +69,7 @@ public class StorageImporter {
|
|||||||
}
|
}
|
||||||
editor.commit();
|
editor.commit();
|
||||||
Preferences.getPreferences(context).refreshAccounts();
|
Preferences.getPreferences(context).refreshAccounts();
|
||||||
|
DateFormatter.clearChosenFormat();
|
||||||
K9.loadPrefs(Preferences.getPreferences(context));
|
K9.loadPrefs(Preferences.getPreferences(context));
|
||||||
return numAccounts;
|
return numAccounts;
|
||||||
} catch (SAXException se) {
|
} catch (SAXException se) {
|
||||||
|
Loading…
Reference in New Issue
Block a user