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

Commit aa7f79f9 authored by Alison Cichowlas's avatar Alison Cichowlas
Browse files

Sharesheet - log copy actions.

Since we've promoted Copy to a system action, out of the general list of targets, it's no longer logged with the regular share target logging.

Bug: 140928181
Test: reviewed adb logcat -b event; correct event looks like
sysui_multi_action: [757,1749,758,4,759,1]
Change-Id: I699ffe0fb7c5631c6e8535377ada36a7ce855734
parent 67ab36fb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -797,6 +797,11 @@ public class ChooserActivity extends ResolverActivity {
            clipboardManager.setPrimaryClip(clipData);
            Toast.makeText(getApplicationContext(), R.string.copied, Toast.LENGTH_SHORT).show();

            // Log share completion via copy
            LogMaker targetLogMaker = new LogMaker(
                    MetricsEvent.ACTION_ACTIVITY_CHOOSER_PICKED_SYSTEM_TARGET).setSubtype(1);
            getMetricsLogger().write(targetLogMaker);

            finish();
        }
    }