forked from organicmaps/organicmaps
[android] Statistics cleanup.
This commit is contained in:
parent
243627c368
commit
dff459953c
2 changed files with 3 additions and 27 deletions
|
@ -1,23 +0,0 @@
|
|||
package com.mapswithme.util;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.facebook.appevents.AppEventsLogger;
|
||||
|
||||
|
||||
public class FbUtil
|
||||
{
|
||||
private static final String TAG = FbUtil.class.getName();
|
||||
|
||||
public static void activate(Context context)
|
||||
{
|
||||
AppEventsLogger.activateApp(context);
|
||||
}
|
||||
|
||||
public static void deactivate(Context context)
|
||||
{
|
||||
AppEventsLogger.deactivateApp(context);
|
||||
}
|
||||
|
||||
private FbUtil() {}
|
||||
}
|
|
@ -1,16 +1,15 @@
|
|||
package com.mapswithme.util.statistics;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.provider.Settings;
|
||||
import android.util.Log;
|
||||
|
||||
import com.facebook.appevents.AppEventsLogger;
|
||||
import com.flurry.android.FlurryAgent;
|
||||
import com.mapswithme.country.ActiveCountryTree;
|
||||
import com.mapswithme.maps.BuildConfig;
|
||||
import com.mapswithme.maps.MwmApplication;
|
||||
import com.mapswithme.maps.R;
|
||||
import com.mapswithme.maps.api.ParsedMwmRequest;
|
||||
import com.mapswithme.util.FbUtil;
|
||||
import com.mapswithme.util.log.Logger;
|
||||
import com.mapswithme.util.log.SimpleLogger;
|
||||
import com.mapswithme.util.log.StubLogger;
|
||||
|
@ -203,7 +202,7 @@ public enum Statistics
|
|||
if (isStatisticsEnabled())
|
||||
{
|
||||
FlurryAgent.onStartSession(activity);
|
||||
FbUtil.activate(activity);
|
||||
AppEventsLogger.activateApp(activity);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -221,7 +220,7 @@ public enum Statistics
|
|||
if (isStatisticsEnabled())
|
||||
{
|
||||
FlurryAgent.onEndSession(activity);
|
||||
FbUtil.deactivate(activity);
|
||||
AppEventsLogger.deactivateApp(activity);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue