Skip to content

Commit 3e8b6e0

Browse files
adityasharatfacebook-github-bot
authored andcommitted
Properly inherit config when creating config builder
Summary: Properly inherit config when creating config builder Reviewed By: pentiumao Differential Revision: D44295802 fbshipit-source-id: bebf9fc91932b339aa09ad49f8867e8bb93f00d4
1 parent fb71379 commit 3e8b6e0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

litho-core/src/main/java/com/facebook/litho/config/ComponentsConfiguration.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,12 @@ public static ComponentsConfiguration.Builder create() {
378378
return create(defaultComponentsConfiguration);
379379
}
380380

381-
public static ComponentsConfiguration.Builder create(
382-
ComponentsConfiguration componentsConfiguration) {
381+
public static ComponentsConfiguration.Builder create(ComponentsConfiguration config) {
383382
return new Builder()
384-
.useCancelableLayoutFutures(componentsConfiguration.getUseCancelableLayoutFutures());
383+
.useCancelableLayoutFutures(config.getUseCancelableLayoutFutures())
384+
.resolveCancellationStrategy(config.getResolveCancellationStrategy())
385+
.isLayoutCancellationEnabled(config.isLayoutCancellationEnabled())
386+
.isLegacyRenderEnabled(config.isLegacyRenderEnabled());
385387
}
386388

387389
public static class Builder {

0 commit comments

Comments
 (0)