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

Commit 3ad8fdd8 authored by Greg Kaiser's avatar Greg Kaiser Committed by Android (Google) Code Review
Browse files

Revert "[Audiosharing] Fix race condition in AudioSharingRepository provides"

This reverts commit 22a39312.

Reason for revert: b/356355515, crashing Volume UI

Change-Id: I3b324f8dde6e62916acde93b7a06db45e9eb8b9a
Test: Local revert of this CL makes the Volume UI crash go away
Flag: EXEMPT for a pure revert to fix a regression
Bug: 356355515
parent 22a39312
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -19,8 +19,8 @@ package com.android.systemui.volume.dagger
import android.content.ContentResolver
import android.content.Context
import android.media.AudioManager
import com.android.settingslib.bluetooth.BluetoothUtils
import com.android.settingslib.bluetooth.LocalBluetoothManager
import com.android.settingslib.flags.Flags
import com.android.settingslib.notification.domain.interactor.NotificationsSoundPolicyInteractor
import com.android.settingslib.volume.data.repository.AudioRepository
import com.android.settingslib.volume.data.repository.AudioRepositoryImpl
@@ -80,7 +80,7 @@ interface AudioModule {
            @Application coroutineScope: CoroutineScope,
            @Background coroutineContext: CoroutineContext,
        ): AudioSharingRepository =
            if (Flags.enableLeAudioSharing() && localBluetoothManager != null) {
            if (BluetoothUtils.isAudioSharingEnabled() && localBluetoothManager != null) {
                AudioSharingRepositoryImpl(
                    contentResolver,
                    localBluetoothManager,