Commit 33d02845 authored by Andreas Schildbach's avatar Andreas Schildbach
Browse files

Rename SetClockJob to UpdateClockJob.

parent c91b0af2
......@@ -34,7 +34,7 @@ import androidx.core.content.ContextCompat
import androidx.work.ExistingPeriodicWorkPolicy
import androidx.work.PeriodicWorkRequestBuilder
import androidx.work.WorkManager
import de.ccc.events.badge.card10.background.SetClockJob
import de.ccc.events.badge.card10.background.UpdateClockJob
import de.ccc.events.badge.card10.installer.InstallerFragment
import de.ccc.events.badge.card10.main.MainFragment
import java.util.concurrent.TimeUnit
......@@ -108,7 +108,7 @@ class MainActivity : AppCompatActivity() {
if (!bluetoothAdapter.bondedDevices.isEmpty()
) {
val updateClockRequest =
PeriodicWorkRequestBuilder<SetClockJob>(1, TimeUnit.MINUTES)
PeriodicWorkRequestBuilder<UpdateClockJob>(1, TimeUnit.MINUTES)
.build()
workManager
.enqueueUniquePeriodicWork(WORK_NAME, ExistingPeriodicWorkPolicy.REPLACE, updateClockRequest)
......
......@@ -35,7 +35,7 @@ import java.nio.ByteBuffer
import java.util.concurrent.CountDownLatch
import java.util.concurrent.TimeUnit
class SetClockJob(context: Context, workerParameters: WorkerParameters) : Worker(context, workerParameters) {
class UpdateClockJob(context: Context, workerParameters: WorkerParameters) : Worker(context, workerParameters) {
private val bluetoothAdapter = BluetoothAdapter.getDefaultAdapter()
override fun doWork(): Result {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment