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:
parent
c283449d04
commit
17cb5106f6
@ -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() {
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user