Skip to content

Button set text not working when method has @AskPermission annotation #25

@pouyaSamie

Description

@pouyaSamie

Hi, it seems there is a problem while I'm trying to update the text of the button in a method like this :


   @AskPermission({
            Manifest.permission.SEND_SMS,
            Manifest.permission.ACCESS_FINE_LOCATION,
            Manifest.permission.INTERNET
    })
    private void ChangeServiceRunning() {

       btn.setText("Stop Service!");
       btn.setBackgroundResource(R.drawable.round_active_button);

    }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions