Fix: Saved Strings in lists in the DB having space at index 0

This commit is contained in:
machiav3lli 2022-05-31 02:59:44 +02:00
parent a892829561
commit 11c7197feb

View File

@ -12,7 +12,7 @@ object Converters {
fun toStringList(byteArray: ByteArray): List<String> {
val string = String(byteArray)
return if (string == "") emptyList()
else string.removeSurrounding("[", "]").split(",").filter(String::isNotEmpty)
else string.removeSurrounding("[", "]").split(", ").filter(String::isNotEmpty)
}
@JvmName("stringListToByteArray")