This repository has been archived by the owner on May 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resolve #106 |
I've reverted Util.java as requested. Is this better? |
Is there any further changes that you'd like me to make? |
@inverse This looks good! Does anyone else have time to test this? Will try to find time. |
For some weird reason database is not opened and when wifi connection is established SLS crashes because mDb is null, adding this little check solves it.
Please add this feature, i tested it and it works as expected. |
Fix NPE on wifi connect
Made the change you suggested. I hope you didn't mind the small tidy up I made. Any chance we could get this PR merged? |
@inverse and @luisbandalap I will test this soon. |
Looks good :) merging... |
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changes adds a broadcast listener that attempts to scrobble whenever Wifi becomes connected. I added a new method to Utils so that it would silently attempt to do this so that no toast notification gets displayed if the cache is empty.
This is one of the first times I've tried to commit on github so any feedback/advice is appreciated :)