pass file name to savefile intent

This commit is contained in:
qimiko committed 2024-02-13 15:42:18 -07:00
1 parent 58725d95d2
commit 83557c3ebe
2 files changed
+13 -9

No files matched your search

@@ -320,15 +320,12 @@ object GeodeUtils {
@JvmStatic
fun createFile(path: String): Boolean {
var uri: Uri?
DocumentFile.fromFile(File(path)).also {
uri = it.uri
}
val initialPath = File(path)
return try {
checkForFilePermissions(
onSuccess = {
saveFileResultLauncher.launch(GeodeSaveFileActivityResult.SaveFileParams(null, uri))
saveFileResultLauncher.launch(GeodeSaveFileActivityResult.SaveFileParams(null, initialPath))
},
onFailure = { failedCallback() }
)