Merge pull request #1488 from iSoron/fix/stackwidget-api33

Widget fixes
This commit is contained in:
2022-09-10 16:11:55 -05:00
committed by GitHub
6 changed files with 139 additions and 25 deletions

View File

@@ -25,6 +25,12 @@ class StringUtils {
fun joinLongs(values: LongArray): String = values.joinToString(separator = ",")
fun splitLongs(str: String): LongArray = str.split(",").map { it.toLong() }.toLongArray()
fun splitLongs(str: String): LongArray {
return try {
str.split(",").map { it.toLong() }.toLongArray()
} catch (e: NumberFormatException) {
LongArray(0)
}
}
}
}