对齐有线传图页 Android UI,并改用相对路径持久化本地照片。
还原顶栏、浮动卡片、时间侧栏与底部交互;照片路径改为 CameraDownloads 相对路径并兼容旧数据;格式 Chip 固定 JPG 且不可点击。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -164,7 +164,7 @@ final class CameraTransferPipeline {
|
||||
let localURL = try await cameraService.downloadAsset(resolvedAsset)
|
||||
let destination: URL
|
||||
|
||||
if localURL.path.hasPrefix(CameraDownloadStorage.downloadsDirectory.path) {
|
||||
if CameraDownloadStorage.isInDownloadsDirectory(localURL) {
|
||||
destination = localURL
|
||||
} else {
|
||||
destination = CameraDownloadStorage.uniqueLocalURL(for: resolvedAsset.filename)
|
||||
@ -174,7 +174,7 @@ final class CameraTransferPipeline {
|
||||
try FileManager.default.moveItem(at: localURL, to: destination)
|
||||
}
|
||||
|
||||
tasks[index].localPath = destination.path
|
||||
tasks[index].localPath = CameraDownloadStorage.relativePath(for: destination)
|
||||
tasks[index].status = .downloaded
|
||||
tasks[index].progress = 0
|
||||
notify()
|
||||
|
||||
Reference in New Issue
Block a user