Skip to content

Commit

Permalink
refactor: rename LayerBuilder to LayerViewFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxGalaxy committed Jan 1, 2025
1 parent a5588df commit 655aab3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import com.icst.android.appstudio.beans.BlockElementLayerBean;
import com.icst.android.appstudio.beans.EventBlockBean;
import com.icst.logic.editor.view.LogicEditorView;
import com.icst.logic.lib.builder.LayerBuilder;
import com.icst.logic.lib.builder.LayerViewFactory;
import com.icst.logic.lib.config.LogicEditorConfiguration;
import com.icst.logic.lib.view.LayerBeanView;
import com.icst.logic.utils.BlockImageUtils;
Expand Down Expand Up @@ -102,7 +102,7 @@ private void addLayers() {
LinearLayout.LayoutParams.WRAP_CONTENT);

BlockElementLayerBean elementLayer = layers.get(i);
LayerBeanView layerView = LayerBuilder.buildBlockLayerView(
LayerBeanView layerView = LayerViewFactory.buildBlockLayerView(
context, eventBlockBean, elementLayer, getLogicEditor(), configuration);
layerView.setLayerPosition(i);
layerView.setFirstLayer(i == 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import com.icst.android.appstudio.beans.LayerBean;
import com.icst.android.appstudio.beans.RegularBlockBean;
import com.icst.logic.editor.view.LogicEditorView;
import com.icst.logic.lib.builder.LayerBuilder;
import com.icst.logic.lib.builder.LayerViewFactory;
import com.icst.logic.lib.config.LogicEditorConfiguration;
import com.icst.logic.lib.view.LayerBeanView;
import com.icst.logic.utils.BlockImageUtils;
Expand Down Expand Up @@ -101,7 +101,7 @@ private void addLayers() {
LinearLayout.LayoutParams.WRAP_CONTENT,
LinearLayout.LayoutParams.WRAP_CONTENT);

LayerBeanView layerView = LayerBuilder.buildBlockLayerView(
LayerBeanView layerView = LayerViewFactory.buildBlockLayerView(
context, regularBlockBean, layers.get(i), getLogicEditor(), getLogicEditorConfiguration());
layerView.setLayerPosition(i);
layerView.setFirstLayer(i == 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
import android.widget.LinearLayout;
import android.widget.TextView;

public final class LayerBuilder {
public final class LayerViewFactory {

public static LayerBeanView buildBlockLayerView(
Context context,
Expand Down

0 comments on commit 655aab3

Please sign in to comment.