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

Commit 9fec2e02 authored by Evan Laird's avatar Evan Laird Committed by Android (Google) Code Review
Browse files

Merge "[sat] move some calls to bg thread" into main

parents e2b8fb30 39c9dec7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -220,7 +220,7 @@ constructor(

        if (satelliteManager != null) {
            // Outer scope launch allows us to delay until MIN_UPTIME
            scope.launch {
            scope.launch(context = bgDispatcher) {
                // First, check that satellite is supported on this device
                satelliteSupport.value = checkSatelliteSupportAfterMinUptime(satelliteManager)
                logBuffer.i(
@@ -229,7 +229,9 @@ constructor(
                )

                // Second, register a listener to let us know if there are changes to support
                scope.launch { listenForChangesToSatelliteSupport(satelliteManager) }
                scope.launch(context = bgDispatcher) {
                    listenForChangesToSatelliteSupport(satelliteManager)
                }
            }
        } else {
            logBuffer.i { "Satellite manager is null" }