From c0f6873cf9fa85a201b81bdefbb9dee7579f88f0 Mon Sep 17 00:00:00 2001 From: M3DZIK Date: Sat, 13 Jan 2024 23:29:26 +0100 Subject: [PATCH] Fix vault injection --- .../dev/medzik/librepass/android/autofill/AutofillService.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,