Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
If a fragment is cancelled as soon as it starts running, there are two state change messages that are reported to the QueryManager: transition to RUNNING and transition to CANCELLATION_REQUESTED.
The order of receiving these messages is not guaranteed because the messages can be reported from different threads. The QueryManager#FragmentStateListener does not check for a transition from CANCELLATION_REQUESTED to RUNNING. This state change should not happen in FragmentData#setStatus.