Improve track index adjustment logic by adding index comparison#436
Conversation
|
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. |
fe8ae5a to
ccd611c
Compare
|
@oceanjules @tianyif Hi, thanks for reviewing this pull request. |
|
I'm going to send this for internal review now. You may see some more commits being added as I make changes in response to review feedback. Please refrain from pushing any more substantive changes as it will complicate the internal review - thanks! |
ccd611c to
43d1bfe
Compare
|
This change has been submitted to the internal repo, you will see it appear in the dev branch next week. No action required at this point. Thanks for the contribution! |
|
Thanks for the comment. |
PiperOrigin-RevId: 540875285 (cherry picked from commit af69d58)
If the conditions are not suitable, it will use the value of the previousSelectedIndex.
so if the previousSelectedIndex and newSelectedIndex are the same, there is no need to perform that logic.
current implementation