Loading packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/DeviceItemInteractor.kt +2 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ import kotlinx.coroutines.flow.SharedFlow import kotlinx.coroutines.flow.SharingStarted import kotlinx.coroutines.flow.asSharedFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.flow.flowOn import kotlinx.coroutines.flow.shareIn import kotlinx.coroutines.isActive import kotlinx.coroutines.withContext Loading Loading @@ -114,6 +115,7 @@ constructor( localBluetoothManager?.eventManager?.registerCallback(listener) awaitClose { localBluetoothManager?.eventManager?.unregisterCallback(listener) } } .flowOn(backgroundDispatcher) .shareIn(coroutineScope, SharingStarted.WhileSubscribed(replayExpirationMillis = 0)) internal suspend fun updateDeviceItems(context: Context, trigger: DeviceFetchTrigger) { Loading Loading
packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/DeviceItemInteractor.kt +2 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ import kotlinx.coroutines.flow.SharedFlow import kotlinx.coroutines.flow.SharingStarted import kotlinx.coroutines.flow.asSharedFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.flow.flowOn import kotlinx.coroutines.flow.shareIn import kotlinx.coroutines.isActive import kotlinx.coroutines.withContext Loading Loading @@ -114,6 +115,7 @@ constructor( localBluetoothManager?.eventManager?.registerCallback(listener) awaitClose { localBluetoothManager?.eventManager?.unregisterCallback(listener) } } .flowOn(backgroundDispatcher) .shareIn(coroutineScope, SharingStarted.WhileSubscribed(replayExpirationMillis = 0)) internal suspend fun updateDeviceItems(context: Context, trigger: DeviceFetchTrigger) { Loading