Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Fix vault injection
Browse files Browse the repository at this point in the history
  • Loading branch information
M3DZIK committed Jan 13, 2024
1 parent 89f04af commit c0f6873
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import android.service.autofill.FillRequest
import android.service.autofill.SaveCallback
import android.service.autofill.SaveRequest
import androidx.annotation.RequiresApi
import dagger.hilt.android.AndroidEntryPoint
import dev.medzik.librepass.android.utils.Vault
import javax.inject.Inject

@AndroidEntryPoint
@RequiresApi(Build.VERSION_CODES.O)
class LibrePassAutofillService : AutofillService() {
// TODO: does not init, why?
@Inject
lateinit var vault: Vault

Expand All @@ -22,6 +23,8 @@ class LibrePassAutofillService : AutofillService() {
cancellationSignal: CancellationSignal,
callback: FillCallback
) {
println(vault)

AutofillHandler.handleAutofill(
vault,
context = this,
Expand Down

0 comments on commit c0f6873

Please sign in to comment.