Compare commits

..

1 commit

Author SHA1 Message Date
5ac0ae72f4
feat: cancellable download 2025-03-10 20:27:35 +08:00

View file

@ -381,7 +381,7 @@ class EuiccChannelManagerService : LifecycleService(), OpenEuiccContextMarker {
R.drawable.ic_task_sim_card_download R.drawable.ic_task_sim_card_download
) { ) {
val callback = object : ProfileDownloadCallback { val callback = object : ProfileDownloadCallback {
override var isCancelled: Boolean = false override var isCancelled: Boolean = true
override fun onStateUpdate(state: ProfileDownloadCallback.DownloadState) { override fun onStateUpdate(state: ProfileDownloadCallback.DownloadState) {
if (state.progress == 0) return if (state.progress == 0) return