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

Commit 1f1d742c authored by Thomas Nguyen's avatar Thomas Nguyen
Browse files

Use a different NB-IoT inactivity timer for demo mode

Bug: 336710638
Test: SatelliteSessionControllerTest SatelliteManagerTestOnMockService
Manual test with Skylo demo and real mode

Change-Id: I596896b7d1bdd0f9761619dde0a3379925f974c0
parent c2077bac
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -1053,9 +1053,14 @@ public class SatelliteSessionController extends StateMachine {
    }
    }


    private long getSatelliteNbIotInactivityTimeoutMillis() {
    private long getSatelliteNbIotInactivityTimeoutMillis() {
        if (isDemoMode()) {
            return mContext.getResources().getInteger(
                    R.integer.config_satellite_demo_mode_nb_iot_inactivity_timeout_millis);
        } else {
            return mContext.getResources().getInteger(
            return mContext.getResources().getInteger(
                    R.integer.config_satellite_nb_iot_inactivity_timeout_millis);
                    R.integer.config_satellite_nb_iot_inactivity_timeout_millis);
        }
        }
    }


    private void restartNbIotInactivityTimer() {
    private void restartNbIotInactivityTimer() {
        stopNbIotInactivityTimer();
        stopNbIotInactivityTimer();