Fix accidental hardcoded Intent key (#858)

This commit is contained in:
Brian Yencho 2024-01-29 18:48:16 -06:00 committed by Álison Fernandes
parent 50d963c70e
commit c7580c87bd

View file

@ -5,7 +5,6 @@ package com.x8bit.bitwarden.data.platform.util
import android.content.Intent
import android.os.Build
import android.os.Parcelable
import android.view.autofill.AutofillManager
import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage
/**
@ -19,5 +18,5 @@ inline fun <reified T> Intent.getSafeParcelableExtra(name: String): T? =
T::class.java,
)
} else {
getParcelableExtra(AutofillManager.EXTRA_ASSIST_STRUCTURE)
getParcelableExtra(name)
}