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

Commit ab899bab authored by Evan Laird's avatar Evan Laird
Browse files

[sb] OngoingActivityChipsViewModel to use bg scope

All of its flows are defined as state flows, so switching to the
background scope just works

Test: OngoingActivityChipsViewModelTest
Bug: 393610814
Flag: EXEMPT threading bugfix
Change-Id: I8927fcfdae38102ee0486828de2a8d96f3a1b889
parent 042e2ff5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
package com.android.systemui.statusbar.chips.ui.viewmodel

import com.android.systemui.dagger.SysUISingleton
import com.android.systemui.dagger.qualifiers.Application
import com.android.systemui.dagger.qualifiers.Background
import com.android.systemui.log.LogBuffer
import com.android.systemui.log.core.LogLevel
import com.android.systemui.statusbar.chips.StatusBarChipLogTags.pad
@@ -50,7 +50,7 @@ import kotlinx.coroutines.flow.stateIn
class OngoingActivityChipsViewModel
@Inject
constructor(
    @Application scope: CoroutineScope,
    @Background scope: CoroutineScope,
    screenRecordChipViewModel: ScreenRecordChipViewModel,
    shareToAppChipViewModel: ShareToAppChipViewModel,
    castToOtherDeviceChipViewModel: CastToOtherDeviceChipViewModel,