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:
Vania Januar
2023-02-07 11:25:31 +00:00
parent 2479c8815d
commit 649c5198c8
4 changed files with 3 additions and 39 deletions

View File

@@ -126,7 +126,7 @@ public class AdvancedBluetoothDetailsHeaderController extends BasePreferenceCont
if (mCachedDevice == null) {
return CONDITIONALLY_UNAVAILABLE;
}
return Utils.isAdvancedDetailsHeader(mCachedDevice.getDevice())
return BluetoothUtils.isAdvancedDetailsHeader(mCachedDevice.getDevice())
? AVAILABLE : CONDITIONALLY_UNAVAILABLE;
}