Use Signal's language for media preview timestamp

Fixes #3449
Closes #5600

// FREEBIE
This commit is contained in:
FeuRenard 2016-08-05 22:17:31 +02:00 committed by Moxie Marlinspike
parent 09ff8d5865
commit 3136cadf59

View File

@ -103,9 +103,7 @@ public class MediaPreviewActivity extends PassphraseRequiredActionBarActivity im
private void initializeActionBar() {
final CharSequence relativeTimeSpan;
if (date > 0) {
relativeTimeSpan = DateUtils.getRelativeTimeSpanString(date,
System.currentTimeMillis(),
DateUtils.MINUTE_IN_MILLIS);
relativeTimeSpan = DateUtils.getExtendedRelativeTimeSpanString(this,dynamicLanguage.getCurrentLocale(),date);
} else {
relativeTimeSpan = null;
}