mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	Invert usage of manager.isExpired()
When it's expired it means, that the app should get the data. Meaning it should not abort prematurely by returning null. Co-authored-by: Tobias Groza <TobiGr@users.noreply.github.com>
This commit is contained in:
		| @@ -180,7 +180,7 @@ public final class CheckForNewAppVersion { | |||||||
|         } |         } | ||||||
|  |  | ||||||
|         final long expiry = prefs.getLong(app.getString(R.string.update_expiry_key), 0); |         final long expiry = prefs.getLong(app.getString(R.string.update_expiry_key), 0); | ||||||
|         if (manager.isExpired(expiry)) { |         if (!manager.isExpired(expiry)) { | ||||||
|             return null; |             return null; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 XiangRongLin
					XiangRongLin