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

Commit 16ef8106 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB] Update docs for AirplaneMode classes.

Thanks to the work on b/264539100, AirplaneModeRepository &
AirplaneModeInteractor *are* used to display the airplane mode icon
in the status bar.

Bug: 264539100
Flag: EXEMPT doc-only change
Test: m SystemUI
Change-Id: I278e9f8b6715a2d31d6c051ef6bd35479c576827
parent 5210ef7e
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -37,15 +37,7 @@ import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.stateIn
import kotlinx.coroutines.withContext

/**
 * Provides data related to airplane mode.
 *
 * IMPORTANT: This is currently *not* used to render any airplane mode information anywhere. It is
 * only used to help [com.android.systemui.statusbar.pipeline.wifi.ui.viewmodel.WifiViewModel]
 * determine what parts of the wifi icon view should be shown.
 *
 * TODO(b/238425913): Consider migrating the status bar airplane mode icon to use this repo.
 */
/** Provides data related to airplane mode. */
interface AirplaneModeRepository {
    /** Observable for whether the device is currently in airplane mode. */
    val isAirplaneMode: StateFlow<Boolean>
+1 −6
Original line number Diff line number Diff line
@@ -26,12 +26,7 @@ import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.map

/**
 * The business logic layer for airplane mode.
 *
 * IMPORTANT: This is currently *not* used to render any airplane mode information anywhere. See
 * [AirplaneModeRepository] for more details.
 */
/** The business logic layer for airplane mode. */
@SysUISingleton
class AirplaneModeInteractor
@Inject