mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
remove a Directory helper function addSize
This commit is contained in:
parent
e9cc985206
commit
f015984385
1 changed files with 1 additions and 5 deletions
|
@ -4,16 +4,12 @@ import com.simplemobiletools.commons.helpers.*
|
|||
import java.io.Serializable
|
||||
|
||||
data class Directory(val path: String, val tmb: String, val name: String, var mediaCnt: Int, val modified: Long, val taken: Long,
|
||||
var size: Long) : Serializable, Comparable<Directory> {
|
||||
val size: Long) : Serializable, Comparable<Directory> {
|
||||
companion object {
|
||||
private val serialVersionUID = -6553345863555455L
|
||||
var sorting: Int = 0
|
||||
}
|
||||
|
||||
fun addSize(bytes: Long) {
|
||||
size += bytes
|
||||
}
|
||||
|
||||
override fun compareTo(other: Directory): Int {
|
||||
var result: Int
|
||||
when {
|
||||
|
|
Loading…
Reference in a new issue