move the library files in a separate folder + misc changes

- dont do such commits at home
This commit is contained in:
tibbi
2016-10-11 20:09:31 +02:00
parent 471169190c
commit 0d9d0b8b1c
57 changed files with 143 additions and 158 deletions

View File

@ -0,0 +1,19 @@
package com.simplemobiletools.filepicker.models
class FileDirItem(val path: String, val name: String, val isDirectory: Boolean, val children: Int, val size: Long) :
Comparable<FileDirItem> {
override fun compareTo(other: FileDirItem): Int {
if (isDirectory && !other.isDirectory) {
return -1
} else if (!isDirectory && other.isDirectory) {
return 1
}
return name.toLowerCase().compareTo(other.name.toLowerCase())
}
override fun toString(): String {
return "FileDirItem{name=$name, isDirectory=$isDirectory, path=$path, children=$children, size=$size}"
}
}