Last active
January 31, 2018 17:31
-
-
Save deviantfero/b32114e81d9adbcfbe8a46235ae99bcd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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