update: app changes, new frame, and latest APK build
This commit is contained in:
@@ -41,14 +41,14 @@ export async function saveToGallery(localUri: string): Promise<string> {
|
||||
|
||||
if (!album) {
|
||||
// 3. If it doesn't exist, create it with our asset
|
||||
// copyAsset=false MOVES the asset instead of duplicating it
|
||||
await createAlbumAsync(ALBUM_NAME, asset, false);
|
||||
console.log(`Created new album "${ALBUM_NAME}" and moved photo.`);
|
||||
// copyAsset=true completely bypasses the Android 11+ OS prompt!
|
||||
await createAlbumAsync(ALBUM_NAME, asset, true);
|
||||
console.log(`Created new album "${ALBUM_NAME}" and copied photo.`);
|
||||
} else {
|
||||
// 4. If it exists, add our asset to it
|
||||
// copyAsset=false MOVES the asset instead of duplicating it
|
||||
await addAssetsToAlbumAsync([asset], album, false);
|
||||
console.log(`Moved photo to existing album "${ALBUM_NAME}".`);
|
||||
// copyAsset=true completely bypasses the Android 11+ OS prompt!
|
||||
await addAssetsToAlbumAsync([asset], album, true);
|
||||
console.log(`Copied photo to existing album "${ALBUM_NAME}".`);
|
||||
}
|
||||
|
||||
return asset.uri;
|
||||
|
||||
Reference in New Issue
Block a user