summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mihir Patel <mkpatel@google.com> 2019-08-19 13:33:33 -0700
committer android-build-merger <android-build-merger@google.com> 2019-08-19 13:33:33 -0700
commitf70d85032dc888ffd5e699baf16eefd96c8ae6dd (patch)
treeceee142855b5bcb350bea2b7ff20de1d81b4d890
parenta0959c1a810307bf7cd4da0057bddd05e3519c2b (diff)
parent4aa0aeadff6d8fa9eb23364e708de25d9eedb62b (diff)
Merge "Fixing a bug where content capture sessions with child sessions could get stuck in a state where no event flushing other than forced flushes would occur" into qt-r1-dev
am: 4aa0aeadff Change-Id: Ie885e7fd929e54f62ae920ec8840d8abb0c5075f
-rw-r--r--core/java/android/view/contentcapture/MainContentCaptureSession.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/java/android/view/contentcapture/MainContentCaptureSession.java b/core/java/android/view/contentcapture/MainContentCaptureSession.java
index cee79439d1b3..1e7440bd5a43 100644
--- a/core/java/android/view/contentcapture/MainContentCaptureSession.java
+++ b/core/java/android/view/contentcapture/MainContentCaptureSession.java
@@ -480,6 +480,8 @@ public final class MainContentCaptureSession extends ContentCaptureSession {
return;
}
+ mNextFlushForTextChanged = false;
+
final int numberEvents = mEvents.size();
final String reasonString = getFlushReasonAsString(reason);
if (sDebug) {
@@ -495,10 +497,6 @@ public final class MainContentCaptureSession extends ContentCaptureSession {
try {
mHandler.removeMessages(MSG_FLUSH);
- if (reason == FLUSH_REASON_TEXT_CHANGE_TIMEOUT) {
- mNextFlushForTextChanged = false;
- }
-
final ParceledListSlice<ContentCaptureEvent> events = clearEvents();
mDirectServiceInterface.sendEvents(events, reason, mManager.mOptions);
} catch (RemoteException e) {