Skip to content

Commit

Permalink
Add annotation to UI thread only method
Browse files Browse the repository at this point in the history
  • Loading branch information
KCeh committed Jul 14, 2024
1 parent b2bb4e7 commit e80a050
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.infinum.sentinel.ui.certificates.observer

import android.content.Context
import android.util.Log
import androidx.annotation.UiThread
import androidx.work.Data
import androidx.work.ListenableWorker
import androidx.work.WorkerFactory
Expand Down Expand Up @@ -57,7 +58,7 @@ internal class DelegateWorker(

private val backingWorkerMap = mutableMapOf<String, WorkerFactory>()

// should be invoked only from the main thread
@UiThread
override fun put(key: String, value: WorkerFactory): WorkerFactory? {
return backingWorkerMap.put(key, value)
}
Expand Down

0 comments on commit e80a050

Please sign in to comment.