Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private fun onStatusChanged(newStatus: VideoCallStatus) {
Log.d(TAG,"New call status: $newStatus")
runOnUiThread {
when(newStatus) {
VideoCallStatus.FINISHED -> finish()
else -> {
statusTextView?.text = resources.getString(newStatus.label)
statusTextView?.setTextColor(ContextCompat.getColor(this, newStatus.color))
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.