Update AppComponentFactory (#1336)

This commit is contained in:
David Perez 2024-05-03 10:39:03 -05:00 committed by Álison Fernandes
parent 3fb66fdb7e
commit 7920d2104f
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@
<application
android:name=".BitwardenApplication"
android:allowBackup="false"
android:appComponentFactory=".BitwardenAppComponentFactory"
android:appComponentFactory="com.x8bit.bitwarden.BitwardenAppComponentFactory"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"

View file

@ -1,8 +1,8 @@
package com.x8bit.bitwarden
import android.app.AppComponentFactory
import android.app.Service
import android.content.Intent
import androidx.core.app.AppComponentFactory
import com.x8bit.bitwarden.data.autofill.BitwardenAutofillService
import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage
@ -20,7 +20,7 @@ class BitwardenAppComponentFactory : AppComponentFactory() {
* service is created. This is required because the [className] used in the manifest must match
* the legacy Xamarin app service name but the service name in this app is different.
*/
override fun instantiateService(
override fun instantiateServiceCompat(
cl: ClassLoader,
className: String,
intent: Intent?,