diff --git a/app-common/src/main/java/im/angry/openeuicc/ui/EuiccManagementFragment.kt b/app-common/src/main/java/im/angry/openeuicc/ui/EuiccManagementFragment.kt
index b7462e2..8947480 100644
--- a/app-common/src/main/java/im/angry/openeuicc/ui/EuiccManagementFragment.kt
+++ b/app-common/src/main/java/im/angry/openeuicc/ui/EuiccManagementFragment.kt
@@ -20,6 +20,7 @@ import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
+import androidx.core.view.isVisible
import androidx.core.view.updateLayoutParams
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
@@ -339,6 +340,8 @@ open class EuiccManagementFragment : Fragment(), EuiccProfilesChangedListener,
private val name: TextView = root.requireViewById(R.id.name)
private val state: TextView = root.requireViewById(R.id.state)
private val provider: TextView = root.requireViewById(R.id.provider)
+ private val profileClassLabel: TextView = root.requireViewById(R.id.profile_class_label)
+ private val profileClass: TextView = root.requireViewById(R.id.profile_class)
private val profileMenu: ImageButton = root.requireViewById(R.id.profile_menu)
init {
@@ -364,6 +367,10 @@ 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
@@ -375,6 +382,13 @@ open class EuiccManagementFragment : Fragment(), EuiccProfilesChangedListener,
}
)
provider.text = profile.providerName
+ if (profileClass.isVisible) profileClass.setText(
+ when (profile.profileClass) {
+ LocalProfileInfo.Clazz.Testing -> R.string.profile_class_testing
+ LocalProfileInfo.Clazz.Provisioning -> R.string.profile_class_provisioning
+ LocalProfileInfo.Clazz.Operational -> R.string.profile_class_operational
+ }
+ )
iccid.text = profile.iccid
iccid.transformationMethod = PasswordTransformationMethod.getInstance()
}
diff --git a/app-common/src/main/res/layout/euicc_profile.xml b/app-common/src/main/res/layout/euicc_profile.xml
index 06aa2b8..83aae8d 100644
--- a/app-common/src/main/res/layout/euicc_profile.xml
+++ b/app-common/src/main/res/layout/euicc_profile.xml
@@ -62,18 +62,43 @@
android:singleLine="true"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@id/state"
- app:layout_constraintBottom_toTopOf="@+id/iccid_label"/>
+ app:layout_constraintBottom_toTopOf="@+id/profile_class_label"/>
+
+
+
+
diff --git a/app-common/src/main/res/values-ja/strings.xml b/app-common/src/main/res/values-ja/strings.xml
index e035f7d..0f25ca6 100644
--- a/app-common/src/main/res/values-ja/strings.xml
+++ b/app-common/src/main/res/values-ja/strings.xml
@@ -11,7 +11,6 @@
有効済み
無効済み
プロバイダー:
- ICCID:
有効化
無効化
削除
diff --git a/app-common/src/main/res/values/strings.xml b/app-common/src/main/res/values/strings.xml
index bd89b25..8ea6e20 100644
--- a/app-common/src/main/res/values/strings.xml
+++ b/app-common/src/main/res/values/strings.xml
@@ -13,7 +13,11 @@
Enabled
Disabled
Provider:
- ICCID:
+ Class:
+ Testing
+ Provisioning
+ Operational
+ ICCID:
Enable
Disable