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

Commit b4016028 authored by Edgar Wang's avatar Edgar Wang
Browse files

Add clicked event for metric log writer

Bug: 243820251
Test: manual
Change-Id: Idec310df85e730eebddb1543893af0dd9651a1ba
parent fb2090e6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -80,6 +80,10 @@ public class SettingsIntelligenceLogWriter implements LogWriter {
                visibleTime /* changedPreferenceIntValue */);
    }

    @Override
    public void clicked(int sourceCategory, String key) {
    }

    @Override
    public void action(Context context, int action, Pair<Integer, Object>... taggedData) {
        action(SettingsEnums.PAGE_UNKNOWN /* attribution */,
+10 −0
Original line number Diff line number Diff line
@@ -44,6 +44,16 @@ public class StatsLogWriter implements LogWriter {
                visibleTime /* changedPreferenceIntValue */);
    }

    @Override
    public void clicked(int sourceCategory, String key) {
        SettingsStatsLog.write(SettingsStatsLog.SETTINGS_UI_CHANGED /* Atom name */,
                sourceCategory /* attribution */,
                SettingsEnums.ACTION_SETTINGS_TILE_CLICK /* action */,
                SettingsEnums.PAGE_UNKNOWN /* pageId */,
                key /* changedPreferenceKey */,
                0 /* changedPreferenceIntValue */);
    }

    @Override
    public void action(Context context, int action, Pair<Integer, Object>... taggedData) {
        action(SettingsEnums.PAGE_UNKNOWN /* attribution */,