mirror of
https://github.com/bitwarden/android.git
synced 2025-12-10 20:07:59 -06:00
Remove unused ClearClipboardWorker from Authenticator (#5683)
This commit is contained in:
parent
4e1dfcaeec
commit
29243c8f44
@ -1,22 +0,0 @@
|
||||
package com.bitwarden.data.platform.manager.clipboard
|
||||
|
||||
import android.content.ClipboardManager
|
||||
import android.content.Context
|
||||
import android.content.Context.CLIPBOARD_SERVICE
|
||||
import androidx.work.Worker
|
||||
import androidx.work.WorkerParameters
|
||||
|
||||
/**
|
||||
* A worker to clear the clipboard manager.
|
||||
*/
|
||||
class ClearClipboardWorker(appContext: Context, workerParams: WorkerParameters) :
|
||||
Worker(appContext, workerParams) {
|
||||
|
||||
private val clipboardManager =
|
||||
appContext.getSystemService(CLIPBOARD_SERVICE) as ClipboardManager
|
||||
|
||||
override fun doWork(): Result {
|
||||
clipboardManager.clearPrimaryClip()
|
||||
return Result.success()
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user