Cast improvements

This commit is contained in:
Juha Heinanen
2026-04-17 21:01:39 +03:00
parent 031369f75a
commit ffd4e5930e
2 changed files with 3 additions and 3 deletions

View File

@ -69,9 +69,9 @@ fun NavGraphBuilder.codecsScreenRoute(navController: NavController) {
Api.account_set_video_codecs(account.accp, codecList)
if (success == 0) {
if (media == "audio")
account.audioCodec = enabledCodecNames as ArrayList<String>
account.audioCodec = ArrayList(enabledCodecNames)
else
account.videoCodec = enabledCodecNames as ArrayList<String>
account.videoCodec = ArrayList(enabledCodecNames)
Account.saveAccounts()
Log.d("CodecsSave", "Codecs saved successfully.")
}

View File

@ -1908,7 +1908,7 @@ private fun CallRow(
onClick = {
val stats = call.stats("audio")
if (stats.isNotEmpty() && call.startTime != null) {
val parts = stats.split(",") as java.util.ArrayList
val parts = ArrayList(stats.split(","))
if (parts[2] == "0/0") {
parts[2] = "?/?"
parts[3] = "?/?"