mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 13:08:00 +01:00
do not make the Directory model Serializable
This commit is contained in:
parent
6bb69e3d9f
commit
74cfe5167e
1 changed files with 1 additions and 6 deletions
|
@ -12,7 +12,6 @@ import com.simplemobiletools.commons.helpers.SORT_BY_PATH
|
||||||
import com.simplemobiletools.commons.helpers.SORT_BY_SIZE
|
import com.simplemobiletools.commons.helpers.SORT_BY_SIZE
|
||||||
import com.simplemobiletools.gallery.pro.helpers.FAVORITES
|
import com.simplemobiletools.gallery.pro.helpers.FAVORITES
|
||||||
import com.simplemobiletools.gallery.pro.helpers.RECYCLE_BIN
|
import com.simplemobiletools.gallery.pro.helpers.RECYCLE_BIN
|
||||||
import java.io.Serializable
|
|
||||||
|
|
||||||
@Entity(tableName = "directories", indices = [Index(value = ["path"], unique = true)])
|
@Entity(tableName = "directories", indices = [Index(value = ["path"], unique = true)])
|
||||||
data class Directory(
|
data class Directory(
|
||||||
|
@ -25,11 +24,7 @@ data class Directory(
|
||||||
@ColumnInfo(name = "date_taken") var taken: Long,
|
@ColumnInfo(name = "date_taken") var taken: Long,
|
||||||
@ColumnInfo(name = "size") var size: Long,
|
@ColumnInfo(name = "size") var size: Long,
|
||||||
@ColumnInfo(name = "location") val location: Int,
|
@ColumnInfo(name = "location") val location: Int,
|
||||||
@ColumnInfo(name = "media_types") var types: Int) : Serializable {
|
@ColumnInfo(name = "media_types") var types: Int) {
|
||||||
|
|
||||||
companion object {
|
|
||||||
private const val serialVersionUID = -6553345863555455L
|
|
||||||
}
|
|
||||||
|
|
||||||
fun getBubbleText(sorting: Int) = when {
|
fun getBubbleText(sorting: Int) = when {
|
||||||
sorting and SORT_BY_NAME != 0 -> name
|
sorting and SORT_BY_NAME != 0 -> name
|
||||||
|
|
Loading…
Reference in a new issue