From 33b70bc315be836674f4489faa569b9aec6e4795 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Sat, 16 Dec 2023 22:06:46 -0500 Subject: [PATCH] [8/n] Improve DSDS prompt --- .../main/java/im/angry/openeuicc/ui/SlotMappingFragment.kt | 4 ++-- app/src/main/res/values/strings.xml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/im/angry/openeuicc/ui/SlotMappingFragment.kt b/app/src/main/java/im/angry/openeuicc/ui/SlotMappingFragment.kt index c0bdc63..2816153 100644 --- a/app/src/main/java/im/angry/openeuicc/ui/SlotMappingFragment.kt +++ b/app/src/main/java/im/angry/openeuicc/ui/SlotMappingFragment.kt @@ -111,11 +111,11 @@ class SlotMappingFragment: DialogFragment(), OnMenuItemClickListener { } private suspend fun buildHelpText() = withContext(Dispatchers.IO) { - var nLogicalSlots = adapter.mappings.size + val nLogicalSlots = adapter.mappings.size val cards = openEuiccApplication.telephonyManager.uiccCardsInfoCompat - var nPhysicalSlots = cards.size + val nPhysicalSlots = cards.size var idxMepCard = -1 var nMepPorts = 0 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1333122..8c2b337 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -11,9 +11,9 @@ Slot Mapping Logical slot %d: Slot %d Port %d - Your phone has %d logical and %d physical SIM slots.%s\n\nSelect which physical slot and/or "port" you want each logical slot to correspond to. Note that not all mapping modes may be supported by hardware. - \n\nPhysical slot %d supports Multiple Enabled Profiles (MEP). To use this feature, associate its %d virtual "ports" to different logical slots shown above. - \nDual SIM mode is supported but disabled. + Your phone has %d logical and %d physical SIM slots.%s\n\nSelect which physical slot and/or \"port\" you want each logical slot to correspond to. Note that not all mapping modes may be supported by hardware. + \n\nPhysical slot %d supports Multiple Enabled Profiles (MEP). To use this feature, assign its %d virtual \"ports\" to different logical slots shown above.\n\nWith MEP enabled, the \"ports\" will behave like separate eSIM slots in OpenEUICC, except with a shared profile list. + \nDual SIM mode is supported but disabled. If your device comes with an internal eSIM chip, it might not be enabled by default. Change mapping above or enable dual SIM to access your eSIM. Your new slot mapping has been set. Please wait until modem refreshes the slots. The specified mapping might be invalid or unsupported by hardware. \ No newline at end of file