diff --git a/app/src/main/java/dev/medzik/librepass/android/autofill/AutofillService.kt b/app/src/main/java/dev/medzik/librepass/android/autofill/AutofillService.kt index b4d47aa3..35c4e59a 100644 --- a/app/src/main/java/dev/medzik/librepass/android/autofill/AutofillService.kt +++ b/app/src/main/java/dev/medzik/librepass/android/autofill/AutofillService.kt @@ -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 @@ -22,6 +23,8 @@ class LibrePassAutofillService : AutofillService() { cancellationSignal: CancellationSignal, callback: FillCallback ) { + println(vault) + AutofillHandler.handleAutofill( vault, context = this,