fix logfile

This commit is contained in:
gallonyin
2023-07-12 18:48:00 +08:00
parent dbd48e2437
commit 5ac17ec603
2 changed files with 2 additions and 2 deletions

View File

@@ -130,7 +130,7 @@ class SettingsActivity : AppCompatActivity() {
ToastUtils.showLong(listFiles[which].name)
val currentLogFilePath = listFiles[which].absolutePath
FileUtils.copy(currentLogFilePath, "$currentLogFilePath.snapshot")
ShareUtil.share("*", File("$currentLogFilePath.snapshot"), auto = false)
ShareUtil.share("*/*", File("$currentLogFilePath.snapshot"), auto = false)
}
.create(R.style.QMUI_Dialog)
.show()

View File

@@ -108,7 +108,7 @@ object FloatWindowHelper {
newFile.writeBytes(printNodeClazzTree.toString().toByteArray())
LogUtils.i("打印节点文件存储本地成功 $filePath", "当前页面: ${WeworkController.weworkService.currentClass}")
}
ShareUtil.share("*", newFile)
ShareUtil.share("*/*", newFile)
}
} else {
ToastUtils.showShort("请先打开WorkTool主功能~")