Merge "Cancel selection animation when new selection arrives"

This commit is contained in:
TreeHugger Robot
2022-09-13 12:56:07 +00:00
committed by Android (Google) Code Review

View File

@@ -148,6 +148,9 @@ public final class SelectionActionModeHelper {
startSelectionActionMode(null);
} else {
resetTextClassificationHelper();
if (mSmartSelectSprite != null && mSmartSelectSprite.isAnimationActive()) {
mSmartSelectSprite.cancelAnimation();
}
mTextClassificationAsyncTask = new TextClassificationAsyncTask(
mTextView,
mTextClassificationHelper.getTimeoutDuration(),