Skip to content

Button Text Not Updating in IncomingCallActivity.kt #195

@kamalexe

Description

@kamalexe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions