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 6e546703a9
commit b125ff702a
No known key found for this signature in database
GPG key ID: F200BFD6F29DDD85
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();