kopia lustrzana https://github.com/ryukoposting/Signal-Android
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 #2215fork-5.53.8
rodzic
0a61534e03
commit
3f0932ff7b
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue