File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
firebase-perf/src/test/java/com/google/firebase/perf Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -545,14 +545,12 @@ private FirebasePerformance initializeFirebasePerformancePreferences(
545
545
Boolean sharedPreferencesEnabledDisabledKey ,
546
546
Provider <RemoteConfigComponent > firebaseRemoteConfigProvider ,
547
547
Provider <TransportFactory > transportFactoryProvider ) {
548
+ DeviceCacheManager deviceCacheManager = new DeviceCacheManager (fakeDirectExecutorService );
549
+ deviceCacheManager .setContext (ApplicationProvider .getApplicationContext ());
548
550
if (sharedPreferencesEnabledDisabledKey != null ) {
549
- DeviceCacheManager deviceCacheManager = new DeviceCacheManager (fakeDirectExecutorService );
550
- deviceCacheManager .setContext (ApplicationProvider .getApplicationContext ());
551
551
deviceCacheManager .setValue (Constants .ENABLE_DISABLE , sharedPreferencesEnabledDisabledKey );
552
- } else {
553
- DeviceCacheManager deviceCacheManager = new DeviceCacheManager (fakeDirectExecutorService );
554
- deviceCacheManager .setContext (ApplicationProvider .getApplicationContext ());
555
552
}
553
+ spyConfigResolver .setDeviceCacheManager (deviceCacheManager );
556
554
557
555
Bundle bundle = new Bundle ();
558
556
if (metadataFireperfEnabledKey != null ) {
You can’t perform that action at this time.
0 commit comments