Update source metric category of HearingAidDialogFragment and HearingAidPairingDialogFragment

Use different source metric categories to distinguish different launch sources of the BluetoothPairingDetail page.

Bug: 237344016
Test: manual
Change-Id: If762e87414055f3e497f99ea6885f7736b7193cd
This commit is contained in:
Angela Wang
2022-06-27 07:58:58 +00:00
parent 95726e0bad
commit c7e74fd8b6
2 changed files with 3 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ public class HearingAidDialogFragment extends InstrumentedDialogFragment {
private void launchBluetoothAddDeviceSetting() {
new SubSettingLauncher(getActivity())
.setDestination(BluetoothPairingDetail.class.getName())
.setSourceMetricsCategory(SettingsEnums.ACCESSIBILITY)
.setSourceMetricsCategory(getMetricsCategory())
.launch();
}
}