Skip to content

Commit

Permalink
fix(android): compatible HippyArray for dispatchFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
siguangli2018 authored and hippy-actions[bot] committed Jan 31, 2024
1 parent 9a48613 commit e03270d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import com.tencent.mtt.hippy.views.common.HippyNestedScrollComponent.Priority;
import com.tencent.mtt.hippy.views.common.HippyNestedScrollHelper;
import com.tencent.mtt.hippy.views.custom.HippyCustomPropsController;
import com.tencent.mtt.hippy.views.view.HippyViewGroup;
import com.tencent.renderer.NativeRenderContext;
import com.tencent.renderer.Renderer;
import com.tencent.renderer.NativeRender;
Expand Down Expand Up @@ -452,15 +453,14 @@ public static void resetTransform(View view) {
@Deprecated
public void dispatchFunction(@NonNull T view, @NonNull String functionName,
@NonNull HippyArray params) {
// Stub method.
dispatchFunction(view, functionName, params.getInternalArray());
}

@SuppressWarnings("deprecation")
@Deprecated
public void dispatchFunction(@NonNull T view, @NonNull String functionName,
@NonNull HippyArray params, @NonNull Promise promise) {
// Stub method.
DevtoolsUtil.dispatchDevtoolsFunction(view, functionName, params, promise);
dispatchFunction(view, functionName, params.getInternalArray(), promise);
}

@Nullable
Expand Down

0 comments on commit e03270d

Please sign in to comment.