@@ -822,33 +822,16 @@ public double getFragmentSamplingRate() {
822
822
823
823
/** Returns if _experiment_app_start_ttid should be captured. */
824
824
public boolean getIsExperimentTTIDEnabled () {
825
- // Order of precedence is:
826
- // 1. If the value exists in Android Manifest, return this value.
827
- // 2. If the value exists through Firebase Remote Config, cache and return this value.
828
- // 3. If the value exists in device cache, return this value.
829
- // 4. Otherwise, return default value.
830
825
ExperimentTTID config = ExperimentTTID .getInstance ();
831
826
832
- // 1. Reads value in Android Manifest (it is set by developers during build time).
827
+ // Reads value in Android Manifest (it is set by developers during build time).
833
828
Optional <Boolean > metadataValue = getMetadataBoolean (config );
834
829
if (metadataValue .isAvailable ()) {
835
830
return metadataValue .get ();
836
831
}
837
832
838
- // 2. Reads value from Firebase Remote Config, saves this value in cache layer if valid.
839
- Optional <Boolean > rcValue = getRemoteConfigBoolean (config );
840
- if (rcValue .isAvailable ()) {
841
- deviceCacheManager .setValue (config .getDeviceCacheFlag (), rcValue .get ());
842
- return rcValue .get ();
843
- }
844
833
845
- // 3. Reads value from cache layer.
846
- Optional <Boolean > deviceCacheValue = getDeviceCacheBoolean (config );
847
- if (deviceCacheValue .isAvailable ()) {
848
- return deviceCacheValue .get ();
849
- }
850
-
851
- // 4. Returns default value if there is no valid value from above approaches.
834
+ // Returns default value if there is no valid value from above approaches.
852
835
return config .getDefault ();
853
836
}
854
837
0 commit comments