You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing a bug in the choice set manager where back-to-back choice sets can fail. Because the SDLPresentChoiceSetOperation uses the standard completionBlock, which runs after the operation completes and the next one starts, if two present operations are next to each other, the second should run, but I've seen cases where that does not happen. This is because the completionBlock clears the pendingPresentationSet, which may no longer be the running presentation set.
Instead, we should do as we do in the alert manager and add pending presentations to the queue and cancel previous non-executing ones if a new one is added.
Reproduction Steps
Create a choice set
Before an option is pressed, present a new choice set
Expected Behavior
The second choice set appears
Observed Behavior
The second choice set fails to appear because the choice set is nil in the PresentChoiceSetOperation. This is because it's set to nil in sdl_presentChoiceSetWithMode in the completionBlock.
OS & Version Information
iOS Version: iOS 14.6
SDL iOS Version: v7.2.0
Testing Against: Manticore and Sync 3.4
Test Case, Sample Code, and / or Example App
n/a
The text was updated successfully, but these errors were encountered:
Bug Report
I'm seeing a bug in the choice set manager where back-to-back choice sets can fail. Because the
SDLPresentChoiceSetOperation
uses the standardcompletionBlock
, which runs after the operation completes and the next one starts, if two present operations are next to each other, the second should run, but I've seen cases where that does not happen. This is because thecompletionBlock
clears thependingPresentationSet
, which may no longer be the running presentation set.Instead, we should do as we do in the alert manager and add pending presentations to the queue and cancel previous non-executing ones if a new one is added.
Reproduction Steps
Expected Behavior
The second choice set appears
Observed Behavior
The second choice set fails to appear because the choice set is
nil
in thePresentChoiceSetOperation
. This is because it's set tonil
insdl_presentChoiceSetWithMode
in thecompletionBlock
.OS & Version Information
Test Case, Sample Code, and / or Example App
n/a
The text was updated successfully, but these errors were encountered: