Merge "Revert "Change API requestIsEnabled to requestIsSessionStarted"" into main

This commit is contained in:
Priyanka Advani (xWF)
2024-07-30 18:12:18 +00:00
committed by Android (Google) Code Review
3 changed files with 3 additions and 4 deletions

View File

@@ -162,8 +162,7 @@ public class AirplaneModePreferenceController extends TogglePreferenceController
public void onResume() {
try {
mIsSatelliteOn.set(
mSatelliteRepository
.requestIsSessionStarted(Executors.newSingleThreadExecutor())
mSatelliteRepository.requestIsEnabled(Executors.newSingleThreadExecutor())
.get(2000, TimeUnit.MILLISECONDS));
} catch (ExecutionException | TimeoutException | InterruptedException e) {
Log.e(TAG, "Error to get satellite status : " + e);