Ensure clock adjustments does not stop remote config refresh.

master
Alan Evans 2020-09-29 11:10:25 -03:00
parent 91be826c7d
commit 4e25e8aaa2
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ public final class FeatureFlags {
public static synchronized void refreshIfNecessary() {
long timeSinceLastFetch = System.currentTimeMillis() - SignalStore.remoteConfigValues().getLastFetchTime();
if (timeSinceLastFetch > FETCH_INTERVAL) {
if (timeSinceLastFetch < 0 || timeSinceLastFetch > FETCH_INTERVAL) {
Log.i(TAG, "Scheduling remote config refresh.");
ApplicationDependencies.getJobManager().add(new RemoteConfigRefreshJob());
} else {