Update Cwtch. Make File Download Consistent on Android #641

Merged
sarah merged 2 commits from autobindings into trunk 2023-03-17 17:38:46 +00:00
1 changed files with 0 additions and 3 deletions
Showing only changes of commit ae1834e7b8 - Show all commits

View File

@ -129,8 +129,6 @@ class MainActivity: FlutterActivity() {
if (requestCode == FILEPICKER_REQUEST_CODE) {
val filePath = intent!!.getData().toString();
Log.d("MainActivity:FILEPICKER_REQUEST_CODE", "DownloadableFileCreated");
Log.d("MainActivity:FILEPICKER_REQUEST_CODE", this.dlManifestPath);
Log.d("MainActivity:FILEPICKER_REQUEST_CODE", filePath);
handleCwtch(MethodCall("DownloadFile", mapOf(
"ProfileOnion" to this.dlToProfile,
"conversation" to this.dlToHandle.toInt(),
@ -432,7 +430,6 @@ class MainActivity: FlutterActivity() {
val filekey: String = call.argument("filekey") ?: ""
// FIXME: Prevent spurious calls by Intent
if (profile != "") {
Log.d("MainActivity.kt", "Cwtch Download File Calling...")
Cwtch.downloadFileDefaultLimit(profile, conversation.toLong(), filepath, manifestpath, filekey)
}
}