-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix crash(es) due to uninitialized notification channel. #1906
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
Conversation
The notification channel needs to be created for API versions greater than OR EQUAL to 26 (O). Also, the channel does not need to be reinitialized if it already exists.
|
I've recreated the PR on top of master. I'm afraid I don't know how to properly rebase it onto the 2.8 branch... (the 2.8 branch seems to be quite a bit behind, and excludes our library/dex updates, as well as all the other crash fixes) |
|
Hmmm... I tested this anyway, and it still has the same crash. :( Does it work for you in prodRelease? Aside from that, I think it's OK to leave this PR up. When it works, I can always just merge, then cherry-pick onto 2.8-release and re-test there. :) Sorry, yeah, 2.8-release is a bit behind master. Unfortunately, our test coverage is currently abysmal (soon to be improved hopefully!), so @neslihanturan and I do a lot of manual testing prior to every major release. We have a lot of new features in master, including PRs from first-time contributors, and typically there is a lot of ironing-out of bugs prior to a major release.... so that's why we try to do all hotfixes as a minor release instead of bundling them with the new features. |
|
And... done! |
Codecov Report
@@ Coverage Diff @@
## master #1906 +/- ##
=========================================
+ Coverage 3.69% 3.71% +0.01%
=========================================
Files 192 192
Lines 9912 9915 +3
Branches 886 886
=========================================
+ Hits 366 368 +2
- Misses 9519 9520 +1
Partials 27 27
Continue to review full report at Codecov.
|
|
Works for me now, thanks so much @dbrant ! :) It spams my emulator logcat with errors during uploading, but I think it doesn't show up for the user, so we can just go with this, and I'll make a note for future enhancements. |
Cherry-pick #1906 onto release branch
The notification channel needs to be created for API versions greater than OR EQUAL to 26 (O). Also, the channel does not need to be reinitialized if it already exists.
This will likely fix #1877