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
public void onCreate(Bundle icicle) {
((OsmandApplication) getApplication()).applyTheme(this);
OsmandApplication app = (OsmandApplication) getApplication();
app.applyTheme(this);
super.onCreate(icicle);
app.logEvent(this, "myplaces_open");
//noinspection ConstantConditions
getSupportActionBar().setTitle(R.string.shared_string_my_places);
getSupportActionBar().setElevation(0);

View file

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