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:
parent
6e546703a9
commit
b125ff702a
9 changed files with 75 additions and 14 deletions
|
|
@ -98,6 +98,7 @@ public class App extends Application {
|
|||
NewPipe.init(getDownloader(),
|
||||
Localization.getPreferredLocalization(this),
|
||||
Localization.getPreferredContentCountry(this));
|
||||
Localization.init();
|
||||
|
||||
StateSaver.init(this);
|
||||
initNotificationChannel();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue