1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-26 01:28:50 -05:00

The date format preference is now refreshed each time the messages get listed.

Previously, changes to the date format preference weren't noticed until
the app restarted.
This commit is contained in:
Sander Bogaert 2011-04-12 13:23:19 +02:00 committed by Jesse Vincent
parent c283449d04
commit 17cb5106f6
2 changed files with 9 additions and 1 deletions

View File

@ -726,6 +726,9 @@ public class MessageList
} }
} else { } else {
// reread the selected date format preference in case it has changed
mMessageHelper.refresh();
new Thread() { new Thread() {
@Override @Override
public void run() { public void run() {

View File

@ -99,4 +99,9 @@ public class MessageHelper {
return mDateFormat.format(date); return mDateFormat.format(date);
} }
} }
public void refresh() {
mDateFormat = DateFormatter.getDateFormat(mContext);
mTodayDateFormat = android.text.format.DateFormat.getTimeFormat(mContext);
}
} }