Skip to content

sync 2.0.9.2 - #4

Merged
gucooing merged 1 commit into
gucooing:mainfrom
yokinanya:main
Jul 20, 2026
Merged

sync 2.0.9.2#4
gucooing merged 1 commit into
gucooing:mainfrom
yokinanya:main

Conversation

@yokinanya

Copy link
Copy Markdown

No description provided.

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

Copy link
Copy Markdown

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.

Reviewed commit: 7fe229fbbf

ℹ️ 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 +162 to +164
final file = await CacheManager.manager.getSingleFile(
url.http2https,
))?.file;

if (file == null) {
final String filePath = '$tmpDirPath/$name';
final response = await Request().downloadFile(
url.http2https,
filePath,
cancelToken: cancelToken,
);
return (
filePath: filePath,
name: name,
statusCode: response.statusCode,
del: true,
);
} else {
return (
filePath: file.path,
name: name,
statusCode: 200,
del: false,
);
}
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Wire the cancel token into downloads

When the user dismisses the “正在下载原图” loading dialog, only cancelToken.cancel is called, but the actual fetch now uses CacheManager.manager.getSingleFile(...) without any cancellation path. For large or multiple images the downloads continue and may still be saved before the later isCancelled check, so the cancel action no longer stops network or storage work.

Useful? React with 👍 / 👎.

Comment on lines 306 to 310
res = await SaverGallery.saveFile(
filePath: filePath,
fileName: fileName,
androidRelativePath: _androidRelativePath,
albumPath: _albumPath,
skipIfExists: false,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Delete temporary sources after saving

When this helper saves a file that was just created under tmpDirPath (for example live-photo videos or the long-press WebP conversion), the source is now saved/copied but never removed because the old del cleanup was removed. Repeated saves can leave large temporary media files behind until the OS happens to clear the temp directory.

Useful? React with 👍 / 👎.

Accept PR gucooing#4 package-name fix: use com.gucooing.piliplus for
AndroidHelper/MediaHelper, jnigen, and JNI bindings. Also move
sources under matching package directories.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@gucooing
gucooing merged commit 69c03fb into gucooing:main Jul 20, 2026
5 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