Make File path property optional

This commit is contained in:
MM20
2024-07-26 17:33:20 +02:00
parent 330b9f673a
commit cdf824ac2e
5 changed files with 13 additions and 11 deletions
@@ -136,13 +136,15 @@ fun FileItem(
style = MaterialTheme.typography.bodySmall
)
}
Text(
text = stringResource(
R.string.file_meta_path,
file.path
),
style = MaterialTheme.typography.bodySmall,
)
if (file.path != null) {
Text(
text = stringResource(
R.string.file_meta_path,
file.path!!
),
style = MaterialTheme.typography.bodySmall,
)
}
if (!file.isDirectory) {
Text(
text = stringResource(