mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58: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:
parent
c283449d04
commit
17cb5106f6
@ -726,6 +726,9 @@ public class MessageList
|
||||
}
|
||||
|
||||
} else {
|
||||
// reread the selected date format preference in case it has changed
|
||||
mMessageHelper.refresh();
|
||||
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -99,4 +99,9 @@ public class MessageHelper {
|
||||
return mDateFormat.format(date);
|
||||
}
|
||||
}
|
||||
|
||||
public void refresh() {
|
||||
mDateFormat = DateFormatter.getDateFormat(mContext);
|
||||
mTodayDateFormat = android.text.format.DateFormat.getTimeFormat(mContext);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user