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

Commit 489cec02 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Service: transmits empty station list" into sc-v2-dev

parents 33032172 02f65dd6
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -189,7 +189,8 @@ class ProgramInfoCache {
                removed.add(id);
            }
        }
        if (modified.isEmpty() && removed.isEmpty() && mComplete == chunk.isComplete()) {
        if (modified.isEmpty() && removed.isEmpty() && mComplete == chunk.isComplete()
                && !chunk.isPurge()) {
            return null;
        }
        mComplete = chunk.isComplete();
@@ -239,9 +240,10 @@ class ProgramInfoCache {
        }

        // Determine number of chunks we need to send.
        int numChunks = 0;
        int numChunks = purge ? 1 : 0;
        if (modified != null) {
            numChunks = roundUpFraction(modified.size(), maxNumModifiedPerChunk);
            numChunks = Math.max(numChunks,
                    roundUpFraction(modified.size(), maxNumModifiedPerChunk));
        }
        if (removed != null) {
            numChunks = Math.max(numChunks, roundUpFraction(removed.size(), maxNumRemovedPerChunk));