Skip to content

Commit

Permalink
fix(android): getScreenShot bitmap width or height < 0 (#3842)
Browse files Browse the repository at this point in the history
Co-authored-by: siguangli <[email protected]>
  • Loading branch information
siguangli and siguangli2018 authored May 9, 2024
1 parent c950b00 commit e01ab9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public static void removeFrameCallback(@NonNull List params, @NonNull View view,
}

public static void getScreenShot(@NonNull List params, @NonNull final View view, @NonNull final Promise promise) {
if (params.isEmpty()) {
if (params.isEmpty() || view.getWidth() <= 0 || view.getHeight() <= 0) {
return;
}
NativeRender renderer = NativeRendererManager.getNativeRenderer(view.getContext());
Expand Down

0 comments on commit e01ab9c

Please sign in to comment.