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>
pull/5474/head
XiangRongLin 2021-01-30 09:32:17 +01:00 zatwierdzone przez GitHub
rodzic 2926cb7682
commit e98838ad7e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -180,7 +180,7 @@ public final class CheckForNewAppVersion {
}
final long expiry = prefs.getLong(app.getString(R.string.update_expiry_key), 0);
if (manager.isExpired(expiry)) {
if (!manager.isExpired(expiry)) {
return null;
}