Skip to content
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

Button Text Not Updating in IncomingCallActivity.kt #195

Open
kamalexe opened this issue Dec 21, 2024 · 0 comments
Open

Button Text Not Updating in IncomingCallActivity.kt #195

kamalexe opened this issue Dec 21, 2024 · 0 comments

Comments

@kamalexe
Copy link

To fix this issue, update the code as follows:
Correct way to set the text for the accept and decline buttons

val acceptText = data?.getString(EXTRA_CALLKEEP_ACCEPT_TEXT, "Accept")
btnAnswer.setText(acceptText)
val declineText = data?.getString(EXTRA_CALLKEEP_DECLINE_TEXT, "Decline")
btnDecline.setText(declineText) // Use btnDecline to set the decline button text
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

No branches or pull requests

1 participant