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

Commit a668de14 authored by Hakjun Choi's avatar Hakjun Choi
Browse files

Ignore duplicate onEmergencyCallStarted case

In case there is another onEmergencyCallStarted invocation happens while onEmergencyCallStarted is in progress, let it ignored

Bug: 338469596
Test: atest SatelliteSOSMessageRecommenderTest
      manual test in live network to check whether overlapped event is ignored from the log
Change-Id: I64f25b0bddbb5121673056493461c81cc78a46f4
parent 2316a64b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -190,6 +190,11 @@ public class SatelliteSOSMessageRecommender extends Handler {
            return;
        }

        if (hasMessages(EVENT_EMERGENCY_CALL_STARTED)) {
            logd("onEmergencyCallStarted: Ignoring due to ongoing event:");
            return;
        }

        /*
         * Right now, assume that the device is connected to satellite via carrier within hysteresis
         * time. However, this might not be correct when the monitoring timer expires. Thus, we