Ensure clock adjustments does not stop remote config refresh.
parent
91be826c7d
commit
4e25e8aaa2
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue