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

Commit bef9f3ab authored by Alison Cichowlas's avatar Alison Cichowlas Committed by android-build-merger
Browse files

Merge "Sharesheet - log copy actions." into qt-qpr1-dev

am: c1d0b9cc

Change-Id: Ifb384080e4d1abd21817275f3bcb7f45ba1a5b1c
parents 75acbec7 c1d0b9cc
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();
        }
    }