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

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

SystemServer: Fix comments typos in the service

Bug: 311772251
Bug: 321804999
Test: m . | typo fix == no-op
Change-Id: Iac44c9cfb4d894d170a6d7d6a398a8416acff634
parent ab8a1e16
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ internal fun initializeRadioModeListener(
/**
 * Check if Bluetooth is impacted by the radio and fetch global mode status
 *
 * @return weither Bluetooth should consider this radio or not
 * @return whether Bluetooth should consider this radio or not
 */
private fun getRadioModeValue(resolver: ContentResolver, radio: String, modeKey: String): Boolean {
    return if (isSensitive(resolver, radio)) {
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ class RadioModeListenerTest {
    }

    @Test
    fun disable_whenDisabled_isDicarded() {
    fun disable_whenDisabled_isDiscarded() {
        enableSensitive()
        disableMode()

+2 −2
Original line number Diff line number Diff line
@@ -179,9 +179,9 @@ private fun airplaneModeValueOverride(
    // Note: Once the "Airplane Enhancement Mode" has been used, media override no longer apply
    //       This has been done on purpose to avoid complexe scenario like:
    //           1. User wants Bt off according to "Airplane Enhancement Mode"
    //           2. User swithes airplane while there is media => so Bt stays on
    //           2. User switches airplane while there is media => so Bt stays on
    //           3. User turns airplane off, stops media and toggles airplane back on
    //       Should we turn Bt off like asked initialy ? Or keep it `on` like the toggle ?
    //       Should we turn Bt off like asked initially ? Or keep it `on` like the toggle ?
    if (isMediaConnected) {
        Log.i(TAG, "Bluetooth stay on during airplane mode because media profile are connected")
        ToastNotification.displayIfNeeded(resolver, getUser)