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

Commit 24259218 authored by Kiwon Park's avatar Kiwon Park Committed by Automerger Merge Worker
Browse files

Merge "Update rat_at_end at the end of a voice call." into tm-qpr-dev am: a670e694

parents 023b8b00 a670e694
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -499,6 +499,17 @@ public class VoiceCallSessionStats {
            proto.carrierId = mPhone.getCarrierId();
        }

        // Update end RAT
        @NetworkType
        int rat = ServiceStateStats.getVoiceRat(mPhone, getServiceState(), proto.bearerAtEnd);
        if (proto.ratAtEnd != rat) {
            proto.ratSwitchCount++;
            proto.ratAtEnd = rat;
            if (rat != TelephonyManager.NETWORK_TYPE_UNKNOWN) {
                proto.lastKnownRat = rat;
            }
        }

        mAtomsStorage.addVoiceCallSession(proto);

        // merge RAT usages to PersistPullers when the call session ends (i.e. no more active calls)