Compare commits

..

No commits in common. "cc7f9a2957f92ffaf89543b5d8fefc9e764040e9" and "14b1352b8a9b3c38cce2beda281f8525338226cc" have entirely different histories.

2 changed files with 5 additions and 5 deletions

View file

@ -52,9 +52,8 @@ class OpenEuiccService : EuiccService() {
} }
override fun onGetEuiccProfileInfoList(slotId: Int): GetEuiccProfileInfoListResult? { override fun onGetEuiccProfileInfoList(slotId: Int): GetEuiccProfileInfoListResult? {
val channel = findChannel(slotId) ?: return null val profiles = (findChannel(slotId) ?: return null).lpa.profiles.filter {
val profiles = channel.lpa.profiles.filter { it.profileClass != LocalProfileInfo.Clazz.Testing
it.profileClass == LocalProfileInfo.Clazz.Operational
}.map { }.map {
EuiccProfileInfo.Builder(it.iccidLittleEndian).apply { EuiccProfileInfo.Builder(it.iccidLittleEndian).apply {
setProfileName(it.name) setProfileName(it.name)
@ -76,7 +75,8 @@ class OpenEuiccService : EuiccService() {
}.build() }.build()
} }
return GetEuiccProfileInfoListResult(RESULT_OK, profiles.toTypedArray(), channel.removable) // TODO: Does isRemovable matter? Will Android even query us for removable SIMs?
return GetEuiccProfileInfoListResult(RESULT_OK, profiles.toTypedArray(), false)
} }
override fun onGetEuiccInfo(slotId: Int): EuiccInfo { override fun onGetEuiccInfo(slotId: Int): EuiccInfo {

View file

@ -81,7 +81,7 @@ class EuiccManagementFragment : Fragment(), EuiccFragmentMarker, EuiccProfilesCh
} }
withContext(Dispatchers.Main) { withContext(Dispatchers.Main) {
adapter.profiles = profiles.filter { it.profileClass == LocalProfileInfo.Clazz.Operational } adapter.profiles = profiles.filter { it.profileClass != LocalProfileInfo.Clazz.Testing }
adapter.notifyDataSetChanged() adapter.notifyDataSetChanged()
binding.swipeRefresh.isRefreshing = false binding.swipeRefresh.isRefreshing = false
} }