Add mechanism to add accessibility service or activity into bluetooth 'Related' category
Bug: 225117933 Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothDetailsRelatedToolsControllerTest Change-Id: Iaa3593b4fd9d916fe7f96b3e4bb0965fdbbe36ec
This commit is contained in:
@@ -148,7 +148,10 @@ public abstract class FeatureFactory {
|
||||
|
||||
public abstract ContextualCardFeatureProvider getContextualCardFeatureProvider(Context context);
|
||||
|
||||
public abstract BluetoothFeatureProvider getBluetoothFeatureProvider(Context context);
|
||||
/**
|
||||
* Retrieves implementation for Bluetooth feature.
|
||||
*/
|
||||
public abstract BluetoothFeatureProvider getBluetoothFeatureProvider();
|
||||
|
||||
public abstract AwareFeatureProvider getAwareFeatureProvider();
|
||||
|
||||
|
@@ -280,10 +280,9 @@ public class FeatureFactoryImpl extends FeatureFactory {
|
||||
}
|
||||
|
||||
@Override
|
||||
public BluetoothFeatureProvider getBluetoothFeatureProvider(Context context) {
|
||||
public BluetoothFeatureProvider getBluetoothFeatureProvider() {
|
||||
if (mBluetoothFeatureProvider == null) {
|
||||
mBluetoothFeatureProvider = new BluetoothFeatureProviderImpl(
|
||||
context.getApplicationContext());
|
||||
mBluetoothFeatureProvider = new BluetoothFeatureProviderImpl(getAppContext());
|
||||
}
|
||||
return mBluetoothFeatureProvider;
|
||||
}
|
||||
|
Reference in New Issue
Block a user