refact: modified as requested

This commit is contained in:
int3debug 2024-05-01 20:00:12 +02:00
parent 18844e734f
commit 06753c8357
1 changed files with 1 additions and 3 deletions

View File

@ -170,9 +170,7 @@ open class PieFetchButton(context: Context, attributeSet: AttributeSet) :
this.setPersistentId(card.id)
view.setOnClickListener {
if (isZeroBytes) {
if (getKey(KEY_RESUME_PACKAGES, card.id) != null) {
removeKey(KEY_RESUME_PACKAGES, card.id.toString())
}
removeKey(KEY_RESUME_PACKAGES, card.id.toString())
callback(DownloadClickEvent(DOWNLOAD_ACTION_DOWNLOAD, card))
//callback.invoke(DownloadClickEvent(DOWNLOAD_ACTION_DOWNLOAD, data))
} else {