diff options
| author | 2019-08-19 20:11:44 +0000 | |
|---|---|---|
| committer | 2019-08-19 20:11:44 +0000 | |
| commit | 4aa0aeadff6d8fa9eb23364e708de25d9eedb62b (patch) | |
| tree | 833b13ca688b536b0cb41caf3875a0538ba48355 | |
| parent | 4769e819e9ec55f5d2925c5783fb82b887c000bc (diff) | |
| parent | 52ed9ee0387fa4faa91deff970dde779e2ff2f9f (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
| -rw-r--r-- | core/java/android/view/contentcapture/MainContentCaptureSession.java | 6 |
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) { |