fixed typo
This commit is contained in:
parent
e14fb16db2
commit
97b4fd69b4
|
@ -45,8 +45,8 @@ class GuardService : Service() {
|
||||||
Timber.i("## Sync: onStartCommand GuardService running:$running")
|
Timber.i("## Sync: onStartCommand GuardService running:$running")
|
||||||
if (running) {
|
if (running) {
|
||||||
if (intent != null) {
|
if (intent != null) {
|
||||||
val liveLine = intent.getBooleanExtra(EXTRA_LIFELINE, false)
|
val lifeLine = intent.getBooleanExtra(EXTRA_LIFELINE, false)
|
||||||
if (liveLine) {//called from lifeLine?
|
if (lifeLine) {//called from lifeLine?
|
||||||
scheduleLifeLine()
|
scheduleLifeLine()
|
||||||
return START_STICKY
|
return START_STICKY
|
||||||
}
|
}
|
||||||
|
@ -65,9 +65,9 @@ class GuardService : Service() {
|
||||||
if (intent != null) {
|
if (intent != null) {
|
||||||
sessionId = intent.getStringExtra(SyncService.EXTRA_SESSION_ID)
|
sessionId = intent.getStringExtra(SyncService.EXTRA_SESSION_ID)
|
||||||
delayInSeconds = intent.getIntExtra(SyncService.EXTRA_DELAY_SECONDS, BackgroundSyncMode.DEFAULT_SYNC_DELAY_SECONDS)
|
delayInSeconds = intent.getIntExtra(SyncService.EXTRA_DELAY_SECONDS, BackgroundSyncMode.DEFAULT_SYNC_DELAY_SECONDS)
|
||||||
val liveLine = intent.getBooleanExtra(EXTRA_LIFELINE, false)
|
val lifeLine = intent.getBooleanExtra(EXTRA_LIFELINE, false)
|
||||||
if (liveLine) {
|
if (lifeLine) {
|
||||||
Timber.i("## Sync: GuardService restarted by liveLine")
|
Timber.i("## Sync: GuardService restarted by lifeLine")
|
||||||
}
|
}
|
||||||
if (sessionId.isNullOrEmpty()) {
|
if (sessionId.isNullOrEmpty()) {
|
||||||
Timber.i("## Sync: GuardService getting sessionId from sharedPreferences")
|
Timber.i("## Sync: GuardService getting sessionId from sharedPreferences")
|
||||||
|
|
Loading…
Reference in New Issue