From 2b1469e02e516b30648d7c997ef9634a99e39b45 Mon Sep 17 00:00:00 2001 From: bopol Date: Sat, 3 Oct 2020 18:58:42 +0200 Subject: [PATCH] update to PrettyTime 4.0.6 fixes #4324 --- app/build.gradle | 2 +- app/src/main/java/org/schabi/newpipe/util/Localization.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index c57298a71..2129007ca 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -209,7 +209,7 @@ dependencies { implementation "io.reactivex.rxjava2:rxandroid:2.1.1" implementation "com.jakewharton.rxbinding2:rxbinding:2.2.0" - implementation "org.ocpsoft.prettytime:prettytime:4.0.5.Final" + implementation "org.ocpsoft.prettytime:prettytime:4.0.6.Final" } static String getGitWorkingBranch() { diff --git a/app/src/main/java/org/schabi/newpipe/util/Localization.java b/app/src/main/java/org/schabi/newpipe/util/Localization.java index 767cebcea..838e4e986 100644 --- a/app/src/main/java/org/schabi/newpipe/util/Localization.java +++ b/app/src/main/java/org/schabi/newpipe/util/Localization.java @@ -305,9 +305,7 @@ public final class Localization { } public static String relativeTime(final Calendar calendarTime) { - final String time = getPrettyTime().formatUnrounded(calendarTime); - return time.startsWith("-") ? time.substring(1) : time; - //workaround fix for russian showing -1 day ago, -19hrs ago… + return getPrettyTime().formatUnrounded(calendarTime); } private static void changeAppLanguage(final Locale loc, final Resources res) {