Merge "Fix connected devices settings jank issue" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8cb761e3d7
@@ -41,6 +41,12 @@ public class BluetoothDeviceRenamePreferenceController extends
|
||||
mMetricsFeatureProvider = FeatureFactory.getFactory(context).getMetricsFeatureProvider();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
return mBluetoothAdapter != null && mBluetoothAdapter.isEnabled()
|
||||
? AVAILABLE : UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the {@link Fragment} that used to show {@link LocalDeviceNameDialogFragment}
|
||||
* in {@code handlePreferenceTreeClick}
|
||||
|
Reference in New Issue
Block a user