Skip to content

Conversation

@TrueWatcher
Copy link
Contributor

@TrueWatcher TrueWatcher commented Dec 13, 2025

Addresses issues #1333

  • fixed exceptions on a call initiation with mic on
  • displays the called friend's name
  • while ringing, indicates "ringing" text line, and beeps on internal speaker
  • on receiving an answer, indicates the call timing
  • also indicates presence of incoming audio stream ("+" after the timer means OK, "X" - network is down or friend's mic is muted)
  • together with PR Incoming call opens CallFragment screen #1330 does all of these also for incoming calls
  • code of CallManager has 4 call states with explicit transitions
atox_pr1334_620


private fun playConnecting() {
val audioAttrContext =
if (Build.VERSION.SDK_INT >= 30) {

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
}
}

fun presentTime(hours: Long, minutes: Int, seconds: Int, nanoseconds: Int): String {

Check warning

Code scanning / detekt

Function parameter is unused and should be removed. Warning

Function parameter nanoseconds is unused.
else -> ""
}
sf += if (hours == 0L) {
String.format("%02d:%02d", minutes, seconds)

Check warning

Code scanning / detekt

Implicit default locale used for string processing. Consider using explicit locale. Warning

String.format("%02d:%02d", minutes, seconds) uses implicitly default locale for string formatting.
@Inject
lateinit var eventListenerCallbacks: EventListenerCallbacks

val screenTimerMs = 1000L

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
sf += if (hours == 0L) {
String.format("%02d:%02d", minutes, seconds)
} else {
String.format("%01d:%02d:%02d", hours, minutes, seconds)

Check warning

Code scanning / detekt

Implicit default locale used for string processing. Consider using explicit locale. Warning

String.format("%01d:%02d:%02d", hours, minutes, seconds) uses implicitly default locale for string formatting.
if (delta < 0) delta = 0
storedFrameCount = new
// normal fps = screenTimerMs / CallManager.AUDIO_SEND_INTERVAL_MS = 50
val asSymbol = if (delta > 25) {

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant