mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-27 08:19:00 +03:00
strict mode report
This commit is contained in:
parent
9d75a66aea
commit
d4fdf7ea80
1 changed files with 1 additions and 0 deletions
|
@ -250,6 +250,7 @@ class VectorSettingsGeneralFragment :
|
||||||
|
|
||||||
// clear medias cache
|
// clear medias cache
|
||||||
findPreference<VectorPreference>(VectorPreferences.SETTINGS_CLEAR_MEDIA_CACHE_PREFERENCE_KEY)!!.let {
|
findPreference<VectorPreference>(VectorPreferences.SETTINGS_CLEAR_MEDIA_CACHE_PREFERENCE_KEY)!!.let {
|
||||||
|
// TODO StrictMode policy violation; ~duration=3383 ms: android.os.strictmode.DiskReadViolation
|
||||||
val size = getSizeOfFiles(File(requireContext().cacheDir, DiskCache.Factory.DEFAULT_DISK_CACHE_DIR)) + session.fileService().getCacheSize()
|
val size = getSizeOfFiles(File(requireContext().cacheDir, DiskCache.Factory.DEFAULT_DISK_CACHE_DIR)) + session.fileService().getCacheSize()
|
||||||
|
|
||||||
it.summary = TextUtils.formatFileSize(requireContext(), size.toLong())
|
it.summary = TextUtils.formatFileSize(requireContext(), size.toLong())
|
||||||
|
|
Loading…
Add table
Reference in a new issue