feat: update photo deletion dialog with system warning
This commit is contained in:
1 parent
f235b5ba26
commit
efe87547f7
5 files changed
+23
-45
No files matched your search
@@ -589,28 +589,15 @@ fun GalleryDetailScreen(
|
||||
text = {
|
||||
Column {
|
||||
Text(stringResource(R.string.delete_confirm))
|
||||
/*if (viewModel.selectedTab == GalleryTab.PHOTON) {
|
||||
if (viewModel.selectedTab == GalleryTab.PHOTON) {
|
||||
Spacer(modifier = Modifier.height(12.dp))
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
modifier = Modifier.clickable { deleteExported = !deleteExported }
|
||||
) {
|
||||
Checkbox(
|
||||
checked = deleteExported,
|
||||
onCheckedChange = { deleteExported = it },
|
||||
colors = CheckboxDefaults.colors(
|
||||
checkedColor = Color(0xFFFF6B35),
|
||||
uncheckedColor = Color.White.copy(alpha = 0.6f)
|
||||
)
|
||||
)
|
||||
Spacer(modifier = Modifier.width(8.dp))
|
||||
Text(
|
||||
text = stringResource(R.string.delete_exported_photos),
|
||||
color = Color.White.copy(alpha = 0.9f),
|
||||
fontSize = 14.sp
|
||||
)
|
||||
}
|
||||
}*/
|
||||
Text(
|
||||
text = stringResource(R.string.delete_system_warning),
|
||||
color = Color.Red,
|
||||
fontSize = 12.sp,
|
||||
lineHeight = 16.sp
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
confirmButton = {
|
||||
|
||||
@@ -483,28 +483,15 @@ fun GalleryScreen(
|
||||
Text(
|
||||
text = stringResource(R.string.delete_multiple_confirm, selectedPhotos.size)
|
||||
)
|
||||
/*if (viewModel.selectedTab == GalleryTab.PHOTON) {
|
||||
if (viewModel.selectedTab == GalleryTab.PHOTON) {
|
||||
Spacer(modifier = Modifier.height(12.dp))
|
||||
Row(
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
modifier = Modifier.clickable { deleteExported = !deleteExported }
|
||||
) {
|
||||
Checkbox(
|
||||
checked = deleteExported,
|
||||
onCheckedChange = { deleteExported = it },
|
||||
colors = CheckboxDefaults.colors(
|
||||
checkedColor = Color(0xFFFF6B35),
|
||||
uncheckedColor = Color.White.copy(alpha = 0.6f)
|
||||
)
|
||||
)
|
||||
Spacer(modifier = Modifier.width(8.dp))
|
||||
Text(
|
||||
text = stringResource(R.string.delete_exported_photos),
|
||||
color = Color.White.copy(alpha = 0.9f),
|
||||
fontSize = 14.sp
|
||||
)
|
||||
}
|
||||
}*/
|
||||
Text(
|
||||
text = stringResource(R.string.delete_system_warning),
|
||||
color = Color.Red,
|
||||
fontSize = 12.sp,
|
||||
lineHeight = 16.sp
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
confirmButton = {
|
||||
|
||||
@@ -107,6 +107,7 @@
|
||||
<string name="delete_confirm">删除这张照片吗?</string>
|
||||
<string name="delete_multiple_confirm">删除 %d 张照片吗?</string>
|
||||
<string name="delete_exported_photos">同时删除系统相册中的导出图</string>
|
||||
<string name="delete_system_warning">注意:此操作将同步删除已导出至系统相册的照片。系统会弹出删除确认,即使拒绝也不影响删除 App 内的照片。</string>
|
||||
<string name="no_photos">暂无照片</string>
|
||||
<string name="photo_info">照片信息</string>
|
||||
<string name="video_info">视频信息</string>
|
||||
|
||||
@@ -65,9 +65,11 @@
|
||||
<string name="crop_original">原始</string>
|
||||
<string name="crop_reset">重設</string>
|
||||
<string name="brightness">亮度</string>
|
||||
<string name="delete_confirm">要刪除這張相片嗎?</string>
|
||||
<string name="delete_multiple_confirm">要刪除 %1$d 張相片嗎?</string>
|
||||
<string name="delete_exported_photos">同時刪除系統相簿中的匯出圖</string>
|
||||
<string name="delete_confirm">刪除這張照片嗎?</string>
|
||||
<string name="delete_multiple_confirm">刪除 %d 張照片嗎?</string>
|
||||
<string name="delete_exported_photos">同時刪除系統相冊中的導出圖</string>
|
||||
<string name="delete_system_warning">注意:此操作將同步刪除已匯出至系統相簿的照片。系統會彈出刪除確認,即使拒絕也不影響刪除 App 內的相片。</string>
|
||||
|
||||
<string name="no_photos">暫無相片</string>
|
||||
<string name="photo_info">相片資訊</string>
|
||||
<string name="filter">LUT</string>
|
||||
|
||||
@@ -109,6 +109,7 @@
|
||||
<string name="delete_confirm">Delete this photo?</string>
|
||||
<string name="delete_multiple_confirm">Delete %d photos?</string>
|
||||
<string name="delete_exported_photos">Also delete from system gallery</string>
|
||||
<string name="delete_system_warning">Note: Exported photos in the system gallery will also be removed. A system prompt will appear; declining it will only cancel the system deletion, while the app version will still be deleted.</string>
|
||||
<string name="no_photos">No photos yet</string>
|
||||
<string name="photo_info">Photo Info</string>
|
||||
<string name="video_info">Video Info</string>
|
||||
|
||||
Reference in new issue
Block a user