minor style update
This commit is contained in:
parent
4bcc181582
commit
5ed8b18e04
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue