Store registered context for sync task unregistrations
For issue #6558, this is an attempt at fixing the IllegalArgumentException by ensuring that the context we use for registering the SyncTask is the same context we use to unregister the task. Race conditions dont seem like a culprit here since unregister is only triggered by the Receiver itself, which should be only executed synchronously on the main thread.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
π PRs merging into main branch
Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.
| 1 Warning | |
|---|---|
| :warning: | Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.) |
Generated by :no_entry_sign: Danger
Test Results
β64 filesβ β-ββββ970βββ64 suitesβ β-β970βββ6m 24s :stopwatch: - 27m 57s 487 tests β-ββ5β406ββ487 :white_check_mark: β-ββ5β384ββ0 :zzz: β-β22ββ0 :x: Β±0β 980 runsβ β-β10β869ββ980 :white_check_mark: β-β10β825ββ0 :zzz: β-β44ββ0 :x: Β±0β
Results for commit 8f8d9c3d.βΒ± Comparison against base commit 4128d9a7.
This pull request removes 5406 tests.
com.google.android.datatransport.cct.CctBackendFactoryTest β create_returnCCTBackend_WhenBackendNameIsCCT
com.google.android.datatransport.cct.CctDestinationTest β cctDestination_shouldOnlySupportProtoAndJson
com.google.android.datatransport.cct.CctDestinationTest β cctDestination_shouldSupportProtoAndJson
com.google.android.datatransport.cct.CctTransportBackendTest β decorate_whenOffline_shouldProperlyPopulateNetworkInfo
com.google.android.datatransport.cct.CctTransportBackendTest β decorate_whenOnline_shouldProperlyPopulateNetworkInfo
com.google.android.datatransport.cct.CctTransportBackendTest β schedule_shouldAddCookieOnPseudonymousIds
com.google.android.datatransport.cct.CctTransportBackendTest β schedule_shouldDropCookieOnMixedPseudonymousIds
com.google.android.datatransport.cct.CctTransportBackendTest β send_CompressedResponseIsUncompressed
com.google.android.datatransport.cct.CctTransportBackendTest β send_whenBackendRedirectsMoreThan5Times_shouldOnlyRedirect4Times
com.google.android.datatransport.cct.CctTransportBackendTest β send_whenBackendRedirects_shouldCorrectlyFollowTheRedirectViaPost
β¦
:recycle: This comment has been updated with latest results.
Coverage Report 1
Affected Products
No changes between base commit (4128d9a) and merge commit (c5d40e9).Test Logs
Size Report 1
Affected Products
firebase-messagingType Base (4128d9a) Merge (0e5738e) Diff aar 149 kB 149 kB +47 B (+0.0%) apk (aggressive) 578 kB 578 kB -60 B (-0.0%) apk (release) 5.31 MB 5.31 MB +8 B (+0.0%)