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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user