-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix error notification on KitKat #7977
Conversation
It was crashing due to a drawable icon being used; also use NotificationManagerCompat
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Superseded by #7613
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (didn't test it so far)
And another merge conflict for #7613 I guess... yay.
Thank you, as a KitKat NewPipe user I appreciate it! Hope this gets merged and released before support drops. |
Ping, so someone merges this approved PR. |
What is it?
Description of the changes in your PR
The app was crashing when trying to display an error notification on KitKat, this PR fixes that by using a non-vector-drawable on API < Lollipop. I also replaced
NotificationManager
withNotificationManagerCompat
, just like in the player'sNotificationUtil
.The crash was encountered while testing other thing and is about "Bad notification posted from package ... Couldn't create icon ..."
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence