Skip to content

Instantly share code, notes, and snippets.

@deviantfero
Last active January 31, 2018 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deviantfero/b32114e81d9adbcfbe8a46235ae99bcd to your computer and use it in GitHub Desktop.
Save deviantfero/b32114e81d9adbcfbe8a46235ae99bcd to your computer and use it in GitHub Desktop.
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