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

Commit afd2c8bf authored by William Escande's avatar William Escande
Browse files

SystemServer: reduce callback visibility

Bug: 289584302
Test: m .
Flag: com.android.bluetooth.flags.use_new_satellite_mode
Change-Id: Ia92cb32676d2f0ed9eac98c699e28efbbda91e31
parent 9fdc4b31
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -398,6 +398,7 @@ class BluetoothManagerService {
    private static final Object ON_SATELLITE_MODE_CHANGED_TOKEN = new Object();
    private static final Object ON_SWITCH_USER_TOKEN = new Object();

    @VisibleForTesting
    Unit onAirplaneModeChanged(boolean isAirplaneModeOn) {
        delayModeChangedIfNeeded(
                ON_AIRPLANE_MODE_CHANGED_TOKEN,
@@ -406,8 +407,7 @@ class BluetoothManagerService {
        return Unit.INSTANCE;
    }

    // TODO(b/289584302): Update to private once use_new_satellite_mode is enabled
    Unit onSatelliteModeChanged(boolean isSatelliteModeOn) {
    private Unit onSatelliteModeChanged(boolean isSatelliteModeOn) {
        delayModeChangedIfNeeded(
                ON_SATELLITE_MODE_CHANGED_TOKEN,
                () -> handleSatelliteModeChanged(isSatelliteModeOn),