Skip to content
Snippets Groups Projects
Commit e2dca19a authored by Adrien Béraud's avatar Adrien Béraud
Browse files

BootReceiver: increase timeout

Change-Id: I4b2b81a14941008204ce08b68864d46480f23dc5
parent 44e0510a
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ class BootReceiver : BroadcastReceiver() { ...@@ -40,7 +40,7 @@ class BootReceiver : BroadcastReceiver() {
try { try {
ContextCompat.startForegroundService(context, Intent(SyncService.ACTION_START) ContextCompat.startForegroundService(context, Intent(SyncService.ACTION_START)
.setClass(context, SyncService::class.java) .setClass(context, SyncService::class.java)
.putExtra(SyncService.EXTRA_TIMEOUT, 5 * DateUtils.SECOND_IN_MILLIS)) .putExtra(SyncService.EXTRA_TIMEOUT, 7 * DateUtils.SECOND_IN_MILLIS))
} catch (e: IllegalStateException) { } catch (e: IllegalStateException) {
Log.e(TAG, "Error starting service", e) Log.e(TAG, "Error starting service", e)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment