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:
@@ -51,7 +51,7 @@ public class HearingAidDialogFragment extends InstrumentedDialogFragment {
|
|||||||
private void launchBluetoothAddDeviceSetting() {
|
private void launchBluetoothAddDeviceSetting() {
|
||||||
new SubSettingLauncher(getActivity())
|
new SubSettingLauncher(getActivity())
|
||||||
.setDestination(BluetoothPairingDetail.class.getName())
|
.setDestination(BluetoothPairingDetail.class.getName())
|
||||||
.setSourceMetricsCategory(SettingsEnums.ACCESSIBILITY)
|
.setSourceMetricsCategory(getMetricsCategory())
|
||||||
.launch();
|
.launch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -54,8 +54,7 @@ public class HearingAidPairingDialogFragment extends InstrumentedDialogFragment
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getMetricsCategory() {
|
public int getMetricsCategory() {
|
||||||
// TODO(b/225117454): Need to update SettingsEnums later
|
return SettingsEnums.DIALOG_ACCESSIBILITY_HEARING_AID_PAIR_ANOTHER;
|
||||||
return SettingsEnums.ACCESSIBILITY;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
@@ -82,7 +81,7 @@ public class HearingAidPairingDialogFragment extends InstrumentedDialogFragment
|
|||||||
private void positiveButtonListener() {
|
private void positiveButtonListener() {
|
||||||
new SubSettingLauncher(getActivity())
|
new SubSettingLauncher(getActivity())
|
||||||
.setDestination(BluetoothPairingDetail.class.getName())
|
.setDestination(BluetoothPairingDetail.class.getName())
|
||||||
.setSourceMetricsCategory(SettingsEnums.ACCESSIBILITY)
|
.setSourceMetricsCategory(getMetricsCategory())
|
||||||
.launch();
|
.launch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user