Merge "Notify Content Capture the selection was changed" into sc-dev am: 6c5c023530 am: c26bf317f3

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14842881

Change-Id: I5bb177f9abb4a374750627e68d24080dd9a76d6e
This commit is contained in:
TYM Tsai
2021-06-29 07:54:08 +00:00
committed by Automerger Merge Worker

View File

@@ -565,6 +565,7 @@ public final class SelectionActionModeHelper {
*/
public void onSmartSelection(SelectionResult result) {
onClassifiedSelection(result);
mTextView.notifyContentCaptureTextChanged();
mLogger.logSelectionModified(
result.mStart, result.mEnd, result.mClassification, result.mSelection);
}
@@ -595,6 +596,7 @@ public final class SelectionActionModeHelper {
mSelectionStart = selectionStart;
mSelectionEnd = selectionEnd;
mAllowReset = false;
mTextView.notifyContentCaptureTextChanged();
mLogger.logSelectionModified(selectionStart, selectionEnd, classification, null);
}
}