Merge "Notify Content Capture the selection was changed" into sc-dev am: 6c5c023530
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14842881 Change-Id: I1647b8ae8784fb74cf5bdae72bce6f4a862425d7
This commit is contained in:
@@ -565,6 +565,7 @@ public final class SelectionActionModeHelper {
|
|||||||
*/
|
*/
|
||||||
public void onSmartSelection(SelectionResult result) {
|
public void onSmartSelection(SelectionResult result) {
|
||||||
onClassifiedSelection(result);
|
onClassifiedSelection(result);
|
||||||
|
mTextView.notifyContentCaptureTextChanged();
|
||||||
mLogger.logSelectionModified(
|
mLogger.logSelectionModified(
|
||||||
result.mStart, result.mEnd, result.mClassification, result.mSelection);
|
result.mStart, result.mEnd, result.mClassification, result.mSelection);
|
||||||
}
|
}
|
||||||
@@ -595,6 +596,7 @@ public final class SelectionActionModeHelper {
|
|||||||
mSelectionStart = selectionStart;
|
mSelectionStart = selectionStart;
|
||||||
mSelectionEnd = selectionEnd;
|
mSelectionEnd = selectionEnd;
|
||||||
mAllowReset = false;
|
mAllowReset = false;
|
||||||
|
mTextView.notifyContentCaptureTextChanged();
|
||||||
mLogger.logSelectionModified(selectionStart, selectionEnd, classification, null);
|
mLogger.logSelectionModified(selectionStart, selectionEnd, classification, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user