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

Commit 81b96649 authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

Merge "Fix display of missed calls when filtering for call type and sorting by count." into cm-10.1

parents 7dece381 10d8fd37
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -85,14 +85,13 @@ public class CallStatsDetailHelper {
            out = byDuration
                    ? details.getRequestedDuration(Calls.OUTGOING_TYPE) * ratio / full
                    : details.getRequestedCount(Calls.OUTGOING_TYPE) * ratio / full;
            if (!byDuration) {
                missed = details.getRequestedCount(Calls.MISSED_TYPE) * ratio / full;
            }
        } else if (type == Calls.INCOMING_TYPE) {
            in = ratio;
        } else if (type == Calls.OUTGOING_TYPE) {
            out = ratio;
        }

        if (!byDuration) {
            missed = details.getRequestedCount(Calls.MISSED_TYPE) * ratio / full;
        } else if (type == Calls.MISSED_TYPE) {
            missed = ratio;
        }