Quote:
In my application onServiceConnected seems to sometimes get called immediately after applicationContext.bindService(...) is called, which causes a crash, because liteDownloadManager is not initialized yet. This PR calls bindService after liteDownloadManager is initialized to eliminate the possibility of this crash.
This is a manual PR from https://github.com/novoda/download-manager/pull/511
Quote: In my application
onServiceConnected
seems to sometimes get called immediately afterapplicationContext.bindService(...)
is called, which causes a crash, becauseliteDownloadManager
is not initialized yet. This PR calls bindService after liteDownloadManager is initialized to eliminate the possibility of this crash.Fixes #510