Bug 1068739 - Record position of search suggestion that was tapped in telemetry. r=mfinkle
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Fri, 03 Oct 2014 14:37:19 -0400
changeset 208738 1cacd42c198b239221336559794dc3446e75ba80
parent 208737 cd21b9eee1a5758fe460f8a9cbcb7b6b6d14e4ef
child 208739 d1094a154b4135ddda9650c6f82f9e990a675077
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersmfinkle
bugs1068739
milestone35.0a1
Bug 1068739 - Record position of search suggestion that was tapped in telemetry. r=mfinkle
mobile/android/search/java/org/mozilla/search/autocomplete/SuggestionsFragment.java
--- a/mobile/android/search/java/org/mozilla/search/autocomplete/SuggestionsFragment.java
+++ b/mobile/android/search/java/org/mozilla/search/autocomplete/SuggestionsFragment.java
@@ -104,17 +104,17 @@ public class SuggestionsFragment extends
             @Override
             public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                 final Suggestion suggestion = (Suggestion) suggestionsList.getItemAtPosition(position);
 
                 final Rect startBounds = new Rect();
                 view.getGlobalVisibleRect(startBounds);
 
                 // The user tapped on a suggestion from the search engine.
-                Telemetry.sendUIEvent(TelemetryContract.Event.SEARCH, TelemetryContract.Method.SUGGESTION, "suggest");
+                Telemetry.sendUIEvent(TelemetryContract.Event.SEARCH, TelemetryContract.Method.SUGGESTION, position);
 
                 searchListener.onSearch(suggestion.value, new SuggestionAnimation() {
                     @Override
                     public Rect getStartBounds() {
                         return startBounds;
                     }
                 });
             }