store temporarily editor files at the cacheDir, not filesDir

This commit is contained in:
tibbi 2020-02-09 22:22:56 +01:00
parent 02bc49a259
commit 37d8f4babf

View file

@ -247,7 +247,7 @@ class NewEditActivity : SimpleActivity() {
settingsList.getSettingsModel(EditorSaveSettings::class.java) settingsList.getSettingsModel(EditorSaveSettings::class.java)
.setExportFormat(EditorSaveSettings.FORMAT.AUTO) .setExportFormat(EditorSaveSettings.FORMAT.AUTO)
.setOutputFilePath("$filesDir/editor/$filename") .setOutputFilePath("$cacheDir/editor/$filename")
.savePolicy = EditorSaveSettings.SavePolicy.RETURN_SOURCE_OR_CREATE_OUTPUT_IF_NECESSARY .savePolicy = EditorSaveSettings.SavePolicy.RETURN_SOURCE_OR_CREATE_OUTPUT_IF_NECESSARY
return settingsList return settingsList