Added events for search open and my places open

This commit is contained in:
Alexey Kulish 2016-11-13 10:32:47 +03:00 committed by Victor Shcherb
parent 6f803ea8b9
commit e71266bbf6
2 changed files with 7 additions and 2 deletions

View file

@ -42,8 +42,12 @@ public class FavoritesActivity extends TabActivity {
@Override @Override
public void onCreate(Bundle icicle) { public void onCreate(Bundle icicle) {
((OsmandApplication) getApplication()).applyTheme(this); OsmandApplication app = (OsmandApplication) getApplication();
app.applyTheme(this);
super.onCreate(icicle); super.onCreate(icicle);
app.logEvent(this, "myplaces_open");
//noinspection ConstantConditions //noinspection ConstantConditions
getSupportActionBar().setTitle(R.string.shared_string_my_places); getSupportActionBar().setTitle(R.string.shared_string_my_places);
getSupportActionBar().setElevation(0); getSupportActionBar().setElevation(0);

View file

@ -1245,8 +1245,9 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
return false; return false;
} }
Bundle bundle = new Bundle(); mapActivity.getMyApplication().logEvent(mapActivity, "search_open");
Bundle bundle = new Bundle();
if (object != null) { if (object != null) {
bundle.putBoolean(QUICK_SEARCH_RUN_SEARCH_FIRST_TIME_KEY, true); bundle.putBoolean(QUICK_SEARCH_RUN_SEARCH_FIRST_TIME_KEY, true);
String objectLocalizedName = searchQuery; String objectLocalizedName = searchQuery;