fix: move clipboard image cache to cache dir

This commit is contained in:
13574
2023-09-10 00:25:26 +08:00
parent 88c51a73d4
commit 9df1031d24
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ object ClipboardUtils {
}
private fun saveToImageCache(mimeType: String, byteArray: ByteArray): File {
val dir = File(MyApplication.applicationContext.filesDir, "images")
val dir = File(MyApplication.applicationContext.cacheDir, "images")
if (!dir.exists()) {
dir.mkdirs()
}

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<paths>
<files-path
<cache-path
name="images"
path="images" />
</paths>