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

Commit f296d059 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

am: bef9f3ab

Change-Id: Ie01a5d6f773942e2188b178bdc0dce9a862627e6
parents 5582ff9d bef9f3ab
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();
        }
    }