mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +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
|
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,
|
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 {
|
companion object {
|
||||||
private val serialVersionUID = -6553345863555455L
|
private val serialVersionUID = -6553345863555455L
|
||||||
var sorting: Int = 0
|
var sorting: Int = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
fun addSize(bytes: Long) {
|
|
||||||
size += bytes
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun compareTo(other: Directory): Int {
|
override fun compareTo(other: Directory): Int {
|
||||||
var result: Int
|
var result: Int
|
||||||
when {
|
when {
|
||||||
|
|
Loading…
Reference in a new issue