Compare commits

..

1 commit

Author SHA1 Message Date
e03a13dfda
feat: euicc memory reset 2025-03-06 20:19:40 +08:00
2 changed files with 2 additions and 7 deletions

View file

@ -104,11 +104,7 @@ class EuiccMemoryResetFragment : DialogFragment(), EuiccChannelFragmentMarker {
euiccChannelManagerService.launchMemoryReset(slotId, portId)
.onStart {
notifyChanged(parentFragment)
val resId = R.string.toast_euicc_memory_reset_finitshed
toast = Toast.makeText(requireContext(), resId, Toast.LENGTH_LONG)
emitEuiccProfilesChanged(parentFragment)
runCatching(::dismiss)
}
.waitDone()
@ -124,7 +120,7 @@ class EuiccMemoryResetFragment : DialogFragment(), EuiccChannelFragmentMarker {
}
}
private fun notifyChanged(fragment: Fragment?) {
private fun emitEuiccProfilesChanged(fragment: Fragment?) {
if (fragment is EuiccProfilesChangedListener) {
// Trigger a refresh in the parent fragment -- it should wait until
// any foreground task is completed before actually doing a refresh

View file

@ -31,7 +31,6 @@
<string name="toast_profile_enable_failed">Cannot switch to new eSIM profile.</string>
<string name="toast_profile_delete_confirm_text_mismatched">Confirmation string mismatch</string>
<string name="toast_euicc_memory_reset_confirm_text_mismatched">Confirmation string mismatch</string>
<string name="toast_euicc_memory_reset_finitshed">This eSIM chip has been erased</string>
<string name="toast_iccid_copied">ICCID copied to clipboard</string>
<string name="toast_sn_copied">Serial Number copied to clipboard</string>
<string name="toast_eid_copied">EID copied to clipboard</string>