mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-19 07:15:25 +02:00
fix: Fix function not being referenced anymore
This commit is contained in:
parent
cf6c653ad3
commit
d24dd4cf4b
@ -187,15 +187,15 @@ fun SelectionSheet(
|
|||||||
|
|
||||||
var showCustomFolderWarning by remember { mutableStateOf(false) }
|
var showCustomFolderWarning by remember { mutableStateOf(false) }
|
||||||
|
|
||||||
if (showCustomFolderWarning) {
|
val selectFolder = rememberFolderSelectorDialog { folder ->
|
||||||
val selectFolder = rememberFolderSelectorDialog { folder ->
|
if (folder == null) {
|
||||||
if (folder == null) {
|
return@rememberFolderSelectorDialog
|
||||||
return@rememberFolderSelectorDialog
|
|
||||||
}
|
|
||||||
|
|
||||||
updateValue(folder.toString())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateValue(folder.toString())
|
||||||
|
}
|
||||||
|
|
||||||
|
if (showCustomFolderWarning) {
|
||||||
CustomFolderWarningDialog(
|
CustomFolderWarningDialog(
|
||||||
onDismiss = {
|
onDismiss = {
|
||||||
showCustomFolderWarning = false
|
showCustomFolderWarning = false
|
||||||
@ -252,7 +252,9 @@ fun SelectionSheet(
|
|||||||
label = stringResource(R.string.ui_settings_option_saveFolder_action_dcim_label),
|
label = stringResource(R.string.ui_settings_option_saveFolder_action_dcim_label),
|
||||||
icon = Icons.Default.PermMedia,
|
icon = Icons.Default.PermMedia,
|
||||||
onClick = {
|
onClick = {
|
||||||
if (PermissionHelper.hasGranted(
|
if (
|
||||||
|
SUPPORTS_SCOPED_STORAGE ||
|
||||||
|
PermissionHelper.hasGranted(
|
||||||
context,
|
context,
|
||||||
Manifest.permission.READ_EXTERNAL_STORAGE
|
Manifest.permission.READ_EXTERNAL_STORAGE
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user