let icon indicating copy to clipboard operation
let copied to clipboard

Button set text not working when method has @AskPermission annotation

Open pouyaSamie opened this issue 7 years ago • 0 comments

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);

    }

pouyaSamie avatar Sep 26 '17 20:09 pouyaSamie