New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About "isNotificationServiceEnabled"... #5
Comments
When this code was implemented, Kotlin was not supported by Android Studio. I did not test the snippet you send, but I don't doubt that it really works. I am just not going to change the method in the codebase to avoid mixing Kotlin and java in the same project, so people don't get confused with mixed languages. |
You can easily convert it to Java. Here:
|
If you could make the changes and send a pull request I will be glad to test and accept it if everything runs fine. |
It's an official API , which was available for a long time: |
OK here: I also updated various other stuff, to match what we use today, and handled some warnings that the IDE and Lint showed. |
What do you mean " without user interaction" ? |
@Chagall Did you check it out? |
Went afk from this account for a long time, will check this as soon as I can. Better late than never. |
It's much easier to use this code instead:
Much better than this:
https://github.com/Chagall/notification-listener-service-example/blob/master/app/src/main/java/com/github/chagall/notificationlistenerexample/MainActivity.java
The text was updated successfully, but these errors were encountered: