Compare commits
1 commit
a4a9ef43d4
...
e03a13dfda
Author | SHA1 | Date | |
---|---|---|---|
e03a13dfda |
2 changed files with 2 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue