canelmas / let

Annotation based simple API flavored with AOP to handle new Android runtime permission model
Apache License 2.0
530 stars 40 forks source link

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

Open pouyaSamie opened 6 years ago

pouyaSamie commented 6 years ago

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

    }