Added possibility to use DefaultFrescoVitoConfig with custom prefetch config
@@ -16,7 +16,15 @@ import com.facebook.infer.annotation.OkToExtend;
@OkToExtend
public class DefaultFrescoVitoConfig implements FrescoVitoConfig {
- private final PrefetchConfig mPrefetchConfig = new DefaultPrefetchConfig();
+ private final PrefetchConfig mPrefetchConfig;
+
+ public DefaultFrescoVitoConfig() {
+ this(new DefaultPrefetchConfig());
+ }
+
+ public DefaultFrescoVitoConfig(PrefetchConfig prefetchConfig) {
+ mPrefetchConfig = prefetchConfig;
+ }
@Override
public PrefetchConfig getPrefetchConfig() {
