mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 07:13:00 +00:00 
			
		
		
		
	Merge pull request #4365 from B0pol/prettytime
Update to PrettyTime 4.0.6
This commit is contained in:
		| @@ -209,7 +209,7 @@ dependencies { | |||||||
|     implementation "io.reactivex.rxjava2:rxandroid:2.1.1" |     implementation "io.reactivex.rxjava2:rxandroid:2.1.1" | ||||||
|     implementation "com.jakewharton.rxbinding2:rxbinding:2.2.0" |     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() { | static String getGitWorkingBranch() { | ||||||
|   | |||||||
| @@ -305,9 +305,7 @@ public final class Localization { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     public static String relativeTime(final Calendar calendarTime) { |     public static String relativeTime(final Calendar calendarTime) { | ||||||
|         final String time = getPrettyTime().formatUnrounded(calendarTime); |         return getPrettyTime().formatUnrounded(calendarTime); | ||||||
|         return time.startsWith("-") ? time.substring(1) : time; |  | ||||||
|         //workaround fix for russian showing -1 day ago, -19hrs ago… |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     private static void changeAppLanguage(final Locale loc, final Resources res) { |     private static void changeAppLanguage(final Locale loc, final Resources res) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Tobias Groza
					Tobias Groza