Notify Content Capture when deselected
Notify Content Capture with the text changed event when deselected. Bug: 184311217 Test: manual 1.long press trigger selection, event is sent. 2.drag selection indicators, send event after the drag is done. 3.deselecting, event is sent. Test: atest CtsContentCaptureServiceTestCases Change-Id: I3d05b8e798bfb5b213817b36f163aab0a688bdf4
This commit is contained in:
@@ -604,6 +604,7 @@ public final class SelectionActionModeHelper {
|
||||
*/
|
||||
public void onSelectionDestroyed() {
|
||||
mAllowReset = false;
|
||||
mTextView.notifyContentCaptureTextChanged();
|
||||
// Wait a few ms to see if the selection was destroyed because of a text change event.
|
||||
mDelayedLogAbandon.schedule(100 /* ms */);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user