From 74cfe5167e83168282cafb1e959b4dcbc53d3f1b Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 14 Dec 2018 21:40:17 +0100 Subject: [PATCH] do not make the Directory model Serializable --- .../com/simplemobiletools/gallery/pro/models/Directory.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/models/Directory.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/models/Directory.kt index c5b90b860..8b90b8bdf 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/models/Directory.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/models/Directory.kt @@ -12,7 +12,6 @@ import com.simplemobiletools.commons.helpers.SORT_BY_PATH import com.simplemobiletools.commons.helpers.SORT_BY_SIZE import com.simplemobiletools.gallery.pro.helpers.FAVORITES import com.simplemobiletools.gallery.pro.helpers.RECYCLE_BIN -import java.io.Serializable @Entity(tableName = "directories", indices = [Index(value = ["path"], unique = true)]) data class Directory( @@ -25,11 +24,7 @@ data class Directory( @ColumnInfo(name = "date_taken") var taken: Long, @ColumnInfo(name = "size") var size: Long, @ColumnInfo(name = "location") val location: Int, - @ColumnInfo(name = "media_types") var types: Int) : Serializable { - - companion object { - private const val serialVersionUID = -6553345863555455L - } + @ColumnInfo(name = "media_types") var types: Int) { fun getBubbleText(sorting: Int) = when { sorting and SORT_BY_NAME != 0 -> name