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

Commit 6bddf4a8 authored by gaoshang's avatar gaoshang Committed by android-build-merger
Browse files

Merge "Fix a anr bug caused by sendFinishedSignal logical error" am:...

Merge "Fix a anr bug caused by sendFinishedSignal logical error" am: 77bee3b4 am: 9d5bddcd am: 251baedf
am: c1f060e6

Change-Id: Iecf0de33ee32cd0c86eb36409ea140cd7e382742
parents 8869aec9 c1f060e6
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -842,15 +842,14 @@ status_t InputConsumer::sendFinishedSignal(uint32_t seq, bool handled) {
        }
        if (status) {
            // An error occurred so at least one signal was not sent, reconstruct the chain.
            do {
            for (;;) {
                SeqChain seqChain;
                seqChain.seq = chainIndex != 0 ? chainSeqs[chainIndex - 1] : seq;
                seqChain.chain = chainSeqs[chainIndex];
                mSeqChains.push(seqChain);
                if (chainIndex != 0) {
                if (!chainIndex) break;
                chainIndex--;
            }
            } while (chainIndex > 0);
            return status;
        }
    }