Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52ed9ee0 authored by Mihir Patel's avatar Mihir Patel
Browse files

Fixing a bug where content capture sessions with child sessions could get...

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

Fixes: 139202268
Test: atest CtsContentCaptureServiceTestCases
Change-Id: I21e9d4db2402fe5210b7d938dac2f12e7557c146
parent f84ff34a
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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) {