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

Commit 6d169b52 authored by Yiyi Shen's avatar Yiyi Shen Committed by Android (Google) Code Review
Browse files

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

This reverts commit 3ad8fdd8.

Reason for revert: Crash fixed in ag/28547967

Change-Id: I3311acae9c67493c61057242016c6536fab515c6
parent 3ad8fdd8
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 (BluetoothUtils.isAudioSharingEnabled() && localBluetoothManager != null) {
            if (Flags.enableLeAudioSharing() && localBluetoothManager != null) {
                AudioSharingRepositoryImpl(
                    contentResolver,
                    localBluetoothManager,