Skip to content

Commit

Permalink
Display company name (if set) on a Call screen when queueing starts
Browse files Browse the repository at this point in the history
Display operator name on a Call screen when operator picks a call

MOB-3807
  • Loading branch information
andrews-moc committed Nov 27, 2024
1 parent 012436e commit 642eee7
Show file tree
Hide file tree
Showing 41 changed files with 90 additions and 82 deletions.
12 changes: 10 additions & 2 deletions widgetssdk/src/main/java/com/glia/widgets/call/CallView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,21 @@ internal class CallView(
operatorStatusView.showTransferring()
operatorNameView.setLocaleText(R.string.engagement_queue_transferring)
} else {
operatorNameView.setLocaleText(R.string.general_company_name)
operatorNameView.setLocaleHint(R.string.chat_operator_name_accessibility_label)
handleCompanyAndOperatorName(state)
handleOperatorStatusViewOperatorImage(state)
}
operatorStatusView.isVisible = state.showOperatorStatusView()
}

private fun handleCompanyAndOperatorName(state: CallState) {
// companyNameView is visible from queueing start till operator picks engagement
companyNameView.setLocaleText(R.string.general_company_name)
companyNameView.setLocaleHint(R.string.glia_call_company_name_hint)
// operatorNameView is visible once operator picks engagement
operatorNameView.text = state.callStatus.formattedOperatorName
operatorNameView.setLocaleHint(R.string.chat_operator_name_accessibility_label)
}

private fun handleOperatorStatusViewOperatorImage(state: CallState) {
if (state.isCallOngoingAndOperatorConnected) {
showOperatorProfileImageOnConnected(state)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 642eee7

Please sign in to comment.