Fix crashes

This commit is contained in:
len
2016-03-19 01:03:28 +01:00
parent b8bc3476f4
commit 8e0a9d6d66
2 changed files with 2 additions and 2 deletions

View File

@@ -124,7 +124,7 @@ class LibraryUpdateService : Service() {
* @param startId the start id of this command.
* @return the start value of the command.
*/
override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
// If there's no network available, set a component to start this service again when
// a connection is available.
if (!NetworkUtil.isNetworkConnected(this)) {