fix: profile class always display #92
2 changed files with 5 additions and 5 deletions
|
@ -367,10 +367,6 @@ open class EuiccManagementFragment : Fragment(), EuiccProfilesChangedListener,
|
|||
private lateinit var profile: LocalProfileInfo
|
||||
|
||||
fun setProfile(profile: LocalProfileInfo) {
|
||||
if (unfilteredProfileListFlow.value) {
|
||||
profileClassLabel.isVisible = true
|
||||
profileClass.isVisible = true
|
||||
}
|
||||
this.profile = profile
|
||||
name.text = profile.displayName
|
||||
|
||||
|
@ -382,7 +378,9 @@ open class EuiccManagementFragment : Fragment(), EuiccProfilesChangedListener,
|
|||
}
|
||||
)
|
||||
provider.text = profile.providerName
|
||||
if (profileClass.isVisible) profileClass.setText(
|
||||
profileClassLabel.isVisible = unfilteredProfileListFlow.value
|
||||
profileClass.isVisible = unfilteredProfileListFlow.value
|
||||
profileClass.setText(
|
||||
when (profile.profileClass) {
|
||||
LocalProfileInfo.Clazz.Testing -> R.string.profile_class_testing
|
||||
LocalProfileInfo.Clazz.Provisioning -> R.string.profile_class_provisioning
|
||||
|
|
|
@ -85,6 +85,7 @@
|
|||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
android:singleLine="true"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/provider_label"
|
||||
app:layout_constraintBottom_toTopOf="@+id/iccid_label"/>
|
||||
|
@ -97,6 +98,7 @@
|
|||
android:layout_marginStart="7dp"
|
||||
android:textSize="14sp"
|
||||
android:singleLine="true"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintLeft_toRightOf="@id/profile_class_label"
|
||||
app:layout_constraintTop_toBottomOf="@id/provider"
|
||||
app:layout_constraintBottom_toTopOf="@+id/iccid"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue