mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 11:22:12 +00:00
Fix: Serializing string lists
This commit is contained in:
parent
12ad62e948
commit
646b1aada0
@ -11,9 +11,9 @@ object Converters {
|
||||
@TypeConverter
|
||||
@JvmStatic
|
||||
fun toStringList(byteArray: ByteArray): List<String> {
|
||||
val string = byteArray.toString()
|
||||
val string = String(byteArray)
|
||||
return if (string == "") emptyList()
|
||||
else string.split(",")
|
||||
else string.removeSurrounding("[", "]").split(",").filter(String::isNotEmpty)
|
||||
}
|
||||
|
||||
@JvmName("stringListToByteArray")
|
||||
|
Loading…
x
Reference in New Issue
Block a user