replace unlocalized 'at' in message details date

Making this a string resource has the potential for crashes.
Leaving it out completely is a little confusing.
The dash is the perfect solution - until a better date formatter is used.
Closes #2215
This commit is contained in:
McLoo 2014-12-14 13:21:54 +01:00 committed by Jake McGinty
parent 0a61534e03
commit 3f0932ff7b

View File

@ -205,9 +205,9 @@ public class ConversationFragment extends ListFragment
String dateFormatPattern;
if (DateFormat.is24HourFormat(getActivity().getApplicationContext())) {
dateFormatPattern = "EEE MMM d, yyyy 'at' HH:mm:ss zzz";
dateFormatPattern = "EEE MMM d, yyyy '-' HH:mm:ss zzz";
} else {
dateFormatPattern = "EEE MMM d, yyyy 'at' hh:mm:ss a zzz";
dateFormatPattern = "EEE MMM d, yyyy '-' hh:mm:ss a zzz";
}
SimpleDateFormat dateFormatter = new SimpleDateFormat(dateFormatPattern);