fix: Fix function not being referenced anymore

This commit is contained in:
Myzel394 2024-01-01 00:31:55 +01:00
parent cf6c653ad3
commit d24dd4cf4b
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -187,15 +187,15 @@ fun SelectionSheet(
var showCustomFolderWarning by remember { mutableStateOf(false) }
if (showCustomFolderWarning) {
val selectFolder = rememberFolderSelectorDialog { folder ->
if (folder == null) {
return@rememberFolderSelectorDialog
}
updateValue(folder.toString())
val selectFolder = rememberFolderSelectorDialog { folder ->
if (folder == null) {
return@rememberFolderSelectorDialog
}
updateValue(folder.toString())
}
if (showCustomFolderWarning) {
CustomFolderWarningDialog(
onDismiss = {
showCustomFolderWarning = false
@ -252,7 +252,9 @@ fun SelectionSheet(
label = stringResource(R.string.ui_settings_option_saveFolder_action_dcim_label),
icon = Icons.Default.PermMedia,
onClick = {
if (PermissionHelper.hasGranted(
if (
SUPPORTS_SCOPED_STORAGE ||
PermissionHelper.hasGranted(
context,
Manifest.permission.READ_EXTERNAL_STORAGE
)