Bug 1301468 - AS Top Sites: Add telemetry for showing context menu. r?ahunt draft
authorSebastian Kaspari <s.kaspari@gmail.com>
Wed, 23 Nov 2016 16:59:13 +0100
changeset 442956 1b4a0387064476050072bf68c0a91d17e5e0d6d0
parent 442955 b87eb97d2f2732a94434a5b55db8d5762dd8e085
child 442957 07a61d0a6de451d38ff9b44e9f6a881d7adbf093
push id36876
push users.kaspari@gmail.com
push dateWed, 23 Nov 2016 16:25:14 +0000
reviewersahunt
bugs1301468
milestone53.0a1
Bug 1301468 - AS Top Sites: Add telemetry for showing context menu. r?ahunt MozReview-Commit-ID: 9OzR2NjUnZJ
mobile/android/base/java/org/mozilla/gecko/home/activitystream/topsites/TopSitesCard.java
--- a/mobile/android/base/java/org/mozilla/gecko/home/activitystream/topsites/TopSitesCard.java
+++ b/mobile/android/base/java/org/mozilla/gecko/home/activitystream/topsites/TopSitesCard.java
@@ -99,11 +99,13 @@ class TopSitesCard extends RecyclerView.
             Telemetry.sendUIEvent(TelemetryContract.Event.LOAD_URL, TelemetryContract.Method.LIST_ITEM, "as_top_sites");
         } else if (clickedView == menuButton) {
             ActivityStreamContextMenu.show(clickedView.getContext(),
                     menuButton,
                     ActivityStreamContextMenu.MenuMode.TOPSITE,
                     title.getText().toString(), url,
                     onUrlOpenListener, onUrlOpenInBackgroundListener,
                     faviconView.getWidth(), faviconView.getHeight());
+
+            Telemetry.sendUIEvent(TelemetryContract.Event.SHOW, TelemetryContract.Method.CONTEXT_MENU, "as_top_sites");
         }
     }
 }