@ -349,11 +349,7 @@ class BookSourceActivity : VMBaseActivity<ActivityBookSourceBinding, BookSourceV
R.id.menu_export_selection -> viewModel.saveToFile(adapter.selection) { file ->
exportDir.launch {
mode = HandleFileContract.EXPORT
fileData = Triple(
"bookSource.json",
file.readBytes(),
"application/json"
)
fileData = Triple("bookSource.json", file, "application/json")
}
@ -55,7 +55,7 @@ class HandleFileContract :
var title: String? = null,
var allowExtensions: Array<String> = arrayOf(),
var otherActions: ArrayList<SelectItem<Int>>? = null,
var fileData: Triple<String, ByteArray, String>? = null,
var fileData: Triple<String, Any, String>? = null,
var requestCode: Int = 0