Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Yunitsky <yunik@mapswithme.com>2014-08-14 14:49:45 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:24:35 +0300
commitf1ce4516aaa29a202b5c078932f0e50fe830b605 (patch)
treebf30d9e89d384b8b5d634704f6a303cf405f9601 /android
parentdd1edb3da2408d0b847e23631059cd56e383c500 (diff)
Statistics for "Show on map"
Diffstat (limited to 'android')
-rw-r--r--android/src/com/mapswithme/maps/SearchActivity.java3
-rw-r--r--android/src/com/mapswithme/util/statistics/Statistics.java4
2 files changed, 5 insertions, 2 deletions
diff --git a/android/src/com/mapswithme/maps/SearchActivity.java b/android/src/com/mapswithme/maps/SearchActivity.java
index 0547b146c2..550a02ae96 100644
--- a/android/src/com/mapswithme/maps/SearchActivity.java
+++ b/android/src/com/mapswithme/maps/SearchActivity.java
@@ -401,6 +401,7 @@ public class SearchActivity extends MapsWithMeBaseListActivity implements Locati
switch (getItemViewType(position))
{
case MESSAGE_TYPE:
+ Statistics.INSTANCE.trackSimpleNamedEvent(Statistics.EventName.SEARCH_ON_MAP_CLICKED);
SearchActivity.nativeShowAllSearchResults();
return null;
case RESULT_TYPE:
@@ -572,7 +573,7 @@ public class SearchActivity extends MapsWithMeBaseListActivity implements Locati
if ((isSearchDown || isActionSearch) && getSearchAdapter().getCount() > 0)
{
- Statistics.INSTANCE.trackSimpleNamedEvent(Statistics.EventName.SEARCH_KEY_PRESSED);
+ Statistics.INSTANCE.trackSimpleNamedEvent(Statistics.EventName.SEARCH_KEY_CLICKED);
if (!doShowCategories())
presentResult(0);
return true;
diff --git a/android/src/com/mapswithme/util/statistics/Statistics.java b/android/src/com/mapswithme/util/statistics/Statistics.java
index 51ee2e7f01..751b0182dc 100644
--- a/android/src/com/mapswithme/util/statistics/Statistics.java
+++ b/android/src/com/mapswithme/util/statistics/Statistics.java
@@ -61,7 +61,9 @@ public enum Statistics
public static final String SETTINGS_HELP = "Settings. Help.";
public static final String SETTINGS_ABOUT = "Settings. About.";
public static final String SETTINGS_COPYRIGHT = "Settings. Copyright.";
- public static final String SEARCH_KEY_PRESSED = "Search key pressed.";
+ public static final String SEARCH_KEY_CLICKED = "Search key pressed.";
+ public static final String SEARCH_ON_MAP_CLICKED = "Search on map clicked.";
+
}