[11/n] lpac-jni: Fix validity check for LPA

none of the properties should be "by lazy" because we depend on whether
they error to detect if the LPA is still valid.
This commit is contained in:
Peter Cai 2023-12-17 11:18:45 -05:00
parent 5948499896
commit d95341b764

View file

@ -20,11 +20,10 @@ class LocalProfileAssistantImpl(
}
override val profiles: List<LocalProfileInfo>
get() = LpacJni.es10cGetProfilesInfo(contextHandle)!!.asList() // TODO: Maybe we need better error handling
get() = LpacJni.es10cGetProfilesInfo(contextHandle)!!.asList()
override val eID: String by lazy {
LpacJni.es10cGetEid(contextHandle)!!
}
override val eID: String
get() = LpacJni.es10cGetEid(contextHandle)!!
override val euiccInfo2: EuiccInfo2?
get() = LpacJni.es10cexGetEuiccInfo2(contextHandle)