From 3136cadf59958a0c2061bbba55ff159473a62303 Mon Sep 17 00:00:00 2001 From: FeuRenard Date: Fri, 5 Aug 2016 22:17:31 +0200 Subject: [PATCH] Use Signal's language for media preview timestamp Fixes #3449 Closes #5600 // FREEBIE --- src/org/thoughtcrime/securesms/MediaPreviewActivity.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/org/thoughtcrime/securesms/MediaPreviewActivity.java b/src/org/thoughtcrime/securesms/MediaPreviewActivity.java index 935b11718a..899e9016f7 100644 --- a/src/org/thoughtcrime/securesms/MediaPreviewActivity.java +++ b/src/org/thoughtcrime/securesms/MediaPreviewActivity.java @@ -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; }