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

Commit b326bba8 authored by Joanne Chung's avatar Joanne Chung Committed by Android (Google) Code Review
Browse files

Merge "Do not send event if the buffer is empty."

parents 3a52b075 c0f877a7
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -528,7 +528,12 @@ public final class MainContentCaptureSession extends ContentCaptureSession {
    @Override
    @UiThread
    void flush(@FlushReason int reason) {
        if (mEvents == null) return;
        if (mEvents == null || mEvents.size() == 0) {
            if (sVerbose) {
                Log.v(TAG, "Don't flush for empty event buffer.");
            }
            return;
        }

        if (mDisabled.get()) {
            Log.e(TAG, "handleForceFlush(" + getDebugState(reason) + "): should not be when "