mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-04-03 13:11:02 +02:00
do not show empty files at the mimetype activity
This commit is contained in:
parent
5498c02f4c
commit
a6976c4834
@ -189,8 +189,12 @@ class MimeTypesActivity : SimpleActivity(), ItemOperationsListener {
|
||||
return@queryCursor
|
||||
}
|
||||
|
||||
val path = cursor.getStringValue(MediaStore.Files.FileColumns.DATA)
|
||||
val size = cursor.getLongValue(MediaStore.Files.FileColumns.SIZE)
|
||||
if (size == 0L) {
|
||||
return@queryCursor
|
||||
}
|
||||
|
||||
val path = cursor.getStringValue(MediaStore.Files.FileColumns.DATA)
|
||||
val lastModified = cursor.getLongValue(MediaStore.Files.FileColumns.DATE_MODIFIED) * 1000
|
||||
|
||||
val mimetype = fullMimetype.substringBefore("/")
|
||||
|
Loading…
x
Reference in New Issue
Block a user