Skip to content

Commit 1cbafa1

Browse files
committed
Send heartbeat for both sim cards
1 parent 472af14 commit 1cbafa1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

android/app/src/main/java/com/httpsms/worker/HeartbeatWorker.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@ class HeartbeatWorker(appContext: Context, workerParams: WorkerParameters) : Wor
2626

2727
private fun sendSIM1Heartbeat() {
2828
if (!Settings.getActiveStatus(applicationContext, Constants.SIM1)) {
29-
Timber.w("[SIM1]user is not active, stopping processing")
29+
Timber.w("[SIM1] user is not active, stopping processing")
3030
return
3131
}
3232

3333
HttpSmsApiService.create(applicationContext).storeHeartbeat(Settings.getSIM1PhoneNumber(applicationContext))
34-
Timber.d("[SIM1]finished sending heartbeat to server")
34+
Timber.d("[SIM1] finished sending heartbeat to server")
3535

3636
Settings.setHeartbeatTimestampAsync(applicationContext, System.currentTimeMillis())
3737
Timber.d("[SIM1] set the heartbeat timestamp")
3838
}
3939

4040
private fun sendSIM2Heartbeat() {
4141
if (!Settings.getActiveStatus(applicationContext, Constants.SIM2)) {
42-
Timber.w("[SIM2]user is not active, stopping processing")
42+
Timber.w("[SIM2] user is not active, stopping processing")
4343
return
4444
}
4545

4646
HttpSmsApiService.create(applicationContext).storeHeartbeat(Settings.getSIM2PhoneNumber(applicationContext))
4747
Timber.d("[SIM2] finished sending heartbeat to server")
4848

4949
Settings.setHeartbeatTimestampAsync(applicationContext, System.currentTimeMillis())
50-
Timber.d("[SIM2]set the heartbeat timestamp")
50+
Timber.d("[SIM2] set the heartbeat timestamp")
5151
}
5252
}

0 commit comments

Comments
 (0)