Use BluetoothUtils.isAdvancedDetailsHeader in Header controllers.
Also removed isAdvancedDetailsHeader from Utils as it's an exact duplicate of the function in BluetoothUtils. Bug: 268165863 Test: AdvancedBluetoothDetailsHeaderControllerTest, BluetoothDetailsHeaderControllerTest Change-Id: Ia8caa7d0dce1760dcf14f2bdfcfebd81ad370f79
This commit is contained in:
@@ -111,7 +111,7 @@ public class LeAudioBluetoothDetailsHeaderController extends BasePreferenceContr
|
||||
.stream()
|
||||
.anyMatch(profile -> profile.getProfileId() == BluetoothProfile.LE_AUDIO);
|
||||
|
||||
return !Utils.isAdvancedDetailsHeader(mCachedDevice.getDevice()) && hasLeAudio
|
||||
return !BluetoothUtils.isAdvancedDetailsHeader(mCachedDevice.getDevice()) && hasLeAudio
|
||||
? AVAILABLE : CONDITIONALLY_UNAVAILABLE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user