Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7e74fd8 authored by Angela Wang's avatar Angela Wang
Browse files

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
parent 95726e0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();
    }
}
+2 −3
Original line number Diff line number Diff line
@@ -54,8 +54,7 @@ public class HearingAidPairingDialogFragment extends InstrumentedDialogFragment

    @Override
    public int getMetricsCategory() {
        // TODO(b/225117454): Need to update SettingsEnums later
        return SettingsEnums.ACCESSIBILITY;
        return SettingsEnums.DIALOG_ACCESSIBILITY_HEARING_AID_PAIR_ANOTHER;
    }

    @NonNull
@@ -82,7 +81,7 @@ public class HearingAidPairingDialogFragment extends InstrumentedDialogFragment
    private void positiveButtonListener() {
        new SubSettingLauncher(getActivity())
                .setDestination(BluetoothPairingDetail.class.getName())
                .setSourceMetricsCategory(SettingsEnums.ACCESSIBILITY)
                .setSourceMetricsCategory(getMetricsCategory())
                .launch();
    }
}