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

Commit 2404e07a authored by Abel Tesfaye's avatar Abel Tesfaye
Browse files

Create unique metrics category for DeviceStateAutoRotateDetailsFragment

DISPLAY_AUTO_ROTATE_SETTINGS is being used by two separate fragments.

Test: none
Bug: 260071662
Change-Id: I8f02e1df54451f0f7501edcf31d8060fdcc604e6
parent b64d2b2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ public class DeviceStateAutoRotateDetailsFragment extends DashboardFragment {

    @Override
    public int getMetricsCategory() {
        return SettingsEnums.DISPLAY_AUTO_ROTATE_SETTINGS;
        return SettingsEnums.DISPLAY_DEVICE_STATE_AUTO_ROTATE_SETTINGS;
    }

    @Override
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ public class DeviceStateAutoRotateDetailsFragmentTest {
    @Test
    public void getMetricsCategory_returnsAutoRotateSettings() {
        assertThat(mFragment.getMetricsCategory()).isEqualTo(
                SettingsEnums.DISPLAY_AUTO_ROTATE_SETTINGS);
                SettingsEnums.DISPLAY_DEVICE_STATE_AUTO_ROTATE_SETTINGS);
    }

    @Test