mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Display audio levels in 1:1 calls.
This commit is contained in:
committed by
Cody Henthorne
parent
dabd131222
commit
73f32868a2
@@ -88,9 +88,8 @@ data class CallParticipant constructor(
|
||||
* display in the UI.
|
||||
*/
|
||||
@JvmStatic
|
||||
fun fromRawAudioLevel(raw: Int?): AudioLevel? {
|
||||
fun fromRawAudioLevel(raw: Int): AudioLevel {
|
||||
return when {
|
||||
raw == null -> null
|
||||
raw < 500 -> LOWEST
|
||||
raw < 2000 -> LOW
|
||||
raw < 8000 -> MEDIUM
|
||||
|
||||
Reference in New Issue
Block a user