-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for issue #13493 #13518
Fix for issue #13493 #13518
Conversation
Can you add a test for this scenario? In TransitioningContentControlTests file. |
I just fixed and now all the tests are passed. Also, I added one more test to verify the check is working. Could you please review it again? Thx! |
Can any one help me to confirm that this PR is able to merge into the master? Thx. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @laolarou726 - thanks for the PR! However looking at the test, it seems to pass even without the modified code in TransitioningContentControl
. In addition when I run your repro (https://github.com/laolarou726/TCCExceptionTest) I don't see any exception there either.
The fix looks reasonable but I'd like to be able to confirm the problem first and I'm not sure why I'm unable to. Does the unit test fail for you if you remove the changes to TransitioningContentControl
?
Ohh sorry for the confusion, in the repo I replace the transitioningcontentcontrol to the fixed implementation "TCC". If you change all the TCC back to the TransitioningContentControl, the exception will occur. I'll just update the repo now. |
@grokys I just updated the repro, and now the exception will shown. Please click the "Start" and wait for a few seconds. Then the exception will be thrown. https://github.com/laolarou726/TCCExceptionTest. For the test, do you think it's ok to just remove it? |
@grokys Could you please check the repo again? Thx! |
@grokys Could you please review the repro again? Thanks! |
What does the pull request do?
This PR fixed an issue mentioned in #13493
For function
UpdateContent(bool withTransition)
, this PR ensures that the Updated content is not in the last presentedContentPresenter
, otherwise it will raise the exception mentioned in #13493What is the current behavior?
Currently, in some cases, the new content is the content that TCC just presented. An exception will be raised.
What is the updated/expected behavior with this PR?
Now there will be no such issue.
Checklist
Fixed issues