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

Commit 9d6781a8 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov Committed by Android (Google) Code Review
Browse files

Merge "[SB] Update docs for AirplaneMode classes." into main

parents fbad9f72 16ef8106
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