canelmas / let

Annotation based simple API flavored with AOP to handle new Android runtime permission model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Button set text not working when method has @AskPermission annotation

pouyaSamie opened this issue · 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);

    }