-
-
Notifications
You must be signed in to change notification settings - Fork 77
Improved Call screen, rewritten CallManager with 4 calll states #1334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| 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
| } | ||
| } | ||
|
|
||
| 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
| 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
| @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
| 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
| 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
Addresses issues #1333