Merge "Fix connected devices settings jank issue" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-05-26 12:36:44 +00:00
committed by Android (Google) Code Review
7 changed files with 16 additions and 217 deletions

View File

@@ -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}