minor style update

This commit is contained in:
Tibor Kaputa 2022-07-23 20:29:45 +02:00 committed by GitHub
parent 4bcc181582
commit 5ed8b18e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -142,8 +142,9 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
if (cursor.moveToFirst()) { if (cursor.moveToFirst()) {
do { do {
val path = cursor.getStringValue(FileColumns.DATA) val path = cursor.getStringValue(FileColumns.DATA)
if (File(path).isDirectory) {
if (File(path).isDirectory) continue continue
}
val name = cursor.getStringValue(FileColumns.DISPLAY_NAME) ?: path.getFilenameFromPath() val name = cursor.getStringValue(FileColumns.DISPLAY_NAME) ?: path.getFilenameFromPath()
val size = cursor.getLongValue(FileColumns.SIZE) val size = cursor.getLongValue(FileColumns.SIZE)