mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 03:12:15 +00:00
Fix: Saved Strings in lists in the DB having space at index 0
This commit is contained in:
parent
a892829561
commit
11c7197feb
@ -12,7 +12,7 @@ object Converters {
|
|||||||
fun toStringList(byteArray: ByteArray): List<String> {
|
fun toStringList(byteArray: ByteArray): List<String> {
|
||||||
val string = String(byteArray)
|
val string = String(byteArray)
|
||||||
return if (string == "") emptyList()
|
return if (string == "") emptyList()
|
||||||
else string.removeSurrounding("[", "]").split(",").filter(String::isNotEmpty)
|
else string.removeSurrounding("[", "]").split(", ").filter(String::isNotEmpty)
|
||||||
}
|
}
|
||||||
|
|
||||||
@JvmName("stringListToByteArray")
|
@JvmName("stringListToByteArray")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user