Skip to content

Commit e98838a

Browse files
XiangRongLinTobiGr
andauthored
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>
1 parent 2926cb7 commit e98838a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/CheckForNewAppVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public static Disposable checkNewVersion(@NonNull final App app) {
180180
}
181181

182182
final long expiry = prefs.getLong(app.getString(R.string.update_expiry_key), 0);
183-
if (manager.isExpired(expiry)) {
183+
if (!manager.isExpired(expiry)) {
184184
return null;
185185
}
186186

0 commit comments

Comments
 (0)