Change database list item delimiter

This commit is contained in:
2020-02-08 18:22:59 +01:00
committed by Matte23
parent f8eea5e335
commit 3a1e213442

View File

@@ -27,7 +27,7 @@ class Converters {
val list: MutableList<String> = mutableListOf() val list: MutableList<String> = mutableListOf()
if (data != null) { if (data != null) {
for (attachment in data.split(",")) { for (attachment in data.split("˜")) {
list.add(attachment) list.add(attachment)
} }
} }
@@ -40,7 +40,7 @@ class Converters {
var string = "" var string = ""
for (attachment in list) { for (attachment in list) {
string += "$attachment," string += "$attachment˜"
} }
return string return string