Show parsed relative times instead of whatever the service gives us

Before, the direct value was given to the user, now it uses the parsed
date so we can match the device's language.

To get the relative time from the parsed dates, we use the PrettyTime
library.

Also introduces a debug option to check the service's original value.
This commit is contained in:
Mauricio Colli 2019-10-28 01:20:06 -03:00
parent 8df3186f83
commit ab1c2b00da
9 changed files with 75 additions and 14 deletions

View file

@ -98,6 +98,7 @@ public class App extends Application {
NewPipe.init(getDownloader(),
Localization.getPreferredLocalization(this),
Localization.getPreferredContentCountry(this));
Localization.init();
StateSaver.init(this);
initNotificationChannel();