@@ -59,7 +59,7 @@ public class RemoteConfigManager {
59
59
private final DeviceCacheManager cache ;
60
60
private final ConcurrentHashMap <String , FirebaseRemoteConfigValue > allRcConfigMap ;
61
61
private final Executor executor ;
62
- private final long appStartConfigFetchDelayInMs ;
62
+ private final long remoteConfigFetchDelayInMs ;
63
63
private long firebaseRemoteConfigLastFetchTimestampMs = FETCH_NEVER_HAPPENED_TIMESTAMP_MS ;
64
64
65
65
@ Nullable private Provider <RemoteConfigComponent > firebaseRemoteConfigProvider ;
@@ -85,15 +85,15 @@ private RemoteConfigManager() {
85
85
DeviceCacheManager cache ,
86
86
Executor executor ,
87
87
FirebaseRemoteConfig firebaseRemoteConfig ,
88
- long appStartConfigFetchDelayInMs ) {
88
+ long remoteConfigFetchDelayInMs ) {
89
89
this .cache = cache ;
90
90
this .executor = executor ;
91
91
this .firebaseRemoteConfig = firebaseRemoteConfig ;
92
92
this .allRcConfigMap =
93
93
firebaseRemoteConfig == null
94
94
? new ConcurrentHashMap <>()
95
95
: new ConcurrentHashMap <>(firebaseRemoteConfig .getAll ());
96
- this .appStartConfigFetchDelayInMs = appStartConfigFetchDelayInMs ;
96
+ this .remoteConfigFetchDelayInMs = remoteConfigFetchDelayInMs ;
97
97
}
98
98
99
99
/** Gets the singleton instance. */
@@ -394,7 +394,7 @@ private boolean shouldFetchAndActivateRemoteConfigValues() {
394
394
* @return true if the random delay has elapsed, false otherwise
395
395
*/
396
396
private boolean hasRemoteConfigFetchDelayElapsed (long currentTimeInMs ) {
397
- return (currentTimeInMs - rcmInitTimestamp ) >= appStartConfigFetchDelayInMs ;
397
+ return (currentTimeInMs - rcmInitTimestamp ) >= remoteConfigFetchDelayInMs ;
398
398
}
399
399
400
400
// We want to fetch once when the app starts and every 12 hours after that.
0 commit comments