It is probable that you have disabled the permissions to power manager. It is a major issue in lollipop and marshmallow devices. Go to settings>apps>Show system apps>power manager. Give all the permissions to this app and allow it to draw over other apps.