mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-21 16:32:39 +00:00
pass file name to savefile intent
This commit is contained in:
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() }
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user