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
pull/1/head
McLoo 11 years ago committed by Jake McGinty
parent 0a61534e03
commit 3f0932ff7b

@ -205,9 +205,9 @@ public class ConversationFragment extends ListFragment
String dateFormatPattern; String dateFormatPattern;
if (DateFormat.is24HourFormat(getActivity().getApplicationContext())) { 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 { } 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); SimpleDateFormat dateFormatter = new SimpleDateFormat(dateFormatPattern);

Loading…
Cancel
Save