Skip to content

Conversation

@shai-almog
Copy link
Collaborator

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 378 to 382
@Override
public void screenshot(SuccessCallback<Image> callback) {
final Activity activity = (Activity) getContext();
final AndroidScreenshotTask task = new AndroidScreenshotTask(this, activity, callback);
activity.runOnUiThread(task);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Pass view to AndroidScreenshotTask constructor

The new screenshot() override instantiates AndroidScreenshotTask with this. The task’s constructor requires an AndroidAsyncView, but the current class is AndroidImplementation. This code will not compile and the feature never builds. You likely intended to pass the existing surface (myView or its Android view) instead of the implementation instance.

Useful? React with 👍 / 👎.

Comment on lines 105 to 110
private void postError(final Throwable t) {
if (callback == null) return;
Display.getInstance().callSerially(new Runnable() {
@Override public void run() {
callback.onError(t);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge SuccessCallback lacks onError method

AndroidScreenshotTask.postError() invokes callback.onError(t) even though the declared type is SuccessCallback<Image>, whose only method is onSucess(T). This is a compile‑time error; the class won’t build. Use the proper callback type (e.g., Callback) or remove the error invocation.

Useful? React with 👍 / 👎.

@shai-almog shai-almog force-pushed the screenshot-grab-api branch 2 times, most recently from 88e73a3 to d0602af Compare November 5, 2025 10:33
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@shai-almog
Copy link
Collaborator Author

shai-almog commented Nov 5, 2025

✅ Native Android screenshot tests passed.

@shai-almog shai-almog merged commit a4d0b29 into master Nov 5, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants