Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Clear notification and download jobs when onTaskRemoved or onDestroy are called #6764

Closed
Amejia481 opened this issue Apr 24, 2020 · 0 comments
Assignees
Labels
<download> Component: feature-download

Comments

@Amejia481
Copy link
Contributor

Amejia481 commented Apr 24, 2020

We were partially cleaning notifications/jobs when onTaskRemoved and onDestroy assuming that they were called one after another, but in reality, after doing some testing is they can be called independently.

When onTaskRemoved was called onDestroy wasn't called after, for this reason we have to make sure we clean our resources in both methods to avoid issues like mozilla-mobile/fenix#9884

┆Issue is synchronized with this Jira Task

@Amejia481 Amejia481 self-assigned this Apr 24, 2020
@Amejia481 Amejia481 added the <download> Component: feature-download label Apr 24, 2020
@Amejia481 Amejia481 changed the title Clear notification and downlod jobs when onTaskRemoved or onDestroy are called Clear notification and download jobs when onTaskRemoved or onDestroy are called Apr 24, 2020
Amejia481 added a commit to Amejia481/android-components that referenced this issue Apr 24, 2020
bors bot pushed a commit that referenced this issue Apr 24, 2020
6765: Closes #6764 Clear notifications and download jobs when onTaskRemoved or onDestroy are called. r=rocketsroger a=Amejia481




Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
@bors bors bot closed this as completed in b34be03 Apr 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
<download> Component: feature-download
Projects
None yet
Development

No branches or pull requests

1 participant