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

Skip to content
Commit 7940c14e authored by Evan Laird's avatar Evan Laird
Browse files

[Sat] Use new TelephonyCallback instead of ServiceState

Previously, we were using `ServiceState.isUsingNonTerrestrialNetwork`
to know if a given mobile connection was using satellite
(non-terrestrial). This single bit was insufficient though, given that
there are carrier requirements for hysteresis when losing the
connection.

This new TelephonyCallback.CarrierRoamingNtnModeListener surfaces the
same information as `isUsingNonTerrestrialNetwork`, but it also embeds
the hysteresis information along with it. So we should be able to use
this single bit instead of modeling the hysteresis ourselves.

Test: tests in statusbar/pipeline/mobile
Test: demo mode using `-e ntn true` mobile command
Bug: 337103875
Flag: NONE
Change-Id: Id003d57662c682bab150795782827f600063243e
parent 69b03fa3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment