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

Commit bb28d5ff authored by Edgar Wang's avatar Edgar Wang Committed by Android (Google) Code Review
Browse files

Merge "Add clicked event for metric log writer"

parents 1051fb16 b4016028
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 */,