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 Donskoy <donskdmitry@mail.ru>2018-09-27 14:47:15 +0300
committerAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2018-09-27 17:16:25 +0300
commit10d42bd1ca7c1945476503088170aee6b6c23add (patch)
tree9801a2430ecc331b9f0c9bdcafe7bf728fd1faee
parent170f3c608369bd7d6d1ac3110b4d1c6b88cf5dee (diff)
Revert "[android] Added EventLogger interface injection to Statistics class, removed deprecated calls from Activity delegate, replaced by event logger calls"
This reverts commit 722e67953f234e3f65bcfa6c82f7bfb8cedd2de4.
-rw-r--r--android/src/com/mapswithme/maps/MwmApplication.java9
-rw-r--r--android/src/com/mapswithme/util/statistics/Statistics.java5
2 files changed, 2 insertions, 12 deletions
diff --git a/android/src/com/mapswithme/maps/MwmApplication.java b/android/src/com/mapswithme/maps/MwmApplication.java
index 99a4e372a8..82b9aa07dd 100644
--- a/android/src/com/mapswithme/maps/MwmApplication.java
+++ b/android/src/com/mapswithme/maps/MwmApplication.java
@@ -72,9 +72,6 @@ public class MwmApplication extends Application
@SuppressWarnings("NullableProblems")
@NonNull
private ExternalLibrariesMediator mMediator;
- @SuppressWarnings("NullableProblems")
- @NonNull
- private Statistics mStatistics;
@NonNull
public SubwayManager getSubwayManager()
@@ -309,12 +306,6 @@ public class MwmApplication extends Application
return mConnectivityListener;
}
- @NonNull
- public Statistics getStatistics()
- {
- return mStatistics;
- }
-
private native void nativeInitPlatform(String apkPath, String storagePath, String privatePath,
String tmpPath, String obbGooglePath, String flavorName,
String buildType, boolean isTablet);
diff --git a/android/src/com/mapswithme/util/statistics/Statistics.java b/android/src/com/mapswithme/util/statistics/Statistics.java
index 8894ef1e46..98cf05bab7 100644
--- a/android/src/com/mapswithme/util/statistics/Statistics.java
+++ b/android/src/com/mapswithme/util/statistics/Statistics.java
@@ -146,7 +146,7 @@ import static com.mapswithme.util.statistics.Statistics.ParamValue.UNKNOWN;
import static com.mapswithme.util.statistics.Statistics.ParamValue.VEHICLE;
import static com.mapswithme.util.statistics.Statistics.ParamValue.VIATOR;
-public final class Statistics
+public enum Statistics
{
INSTANCE;
@@ -492,9 +492,8 @@ public final class Statistics
// avoid their initialization if user has disabled statistics collection.
private final boolean mEnabled;
- public Statistics(@NonNull ExternalLibrariesMediator mediator)
+ Statistics()
{
- mMediator = mediator;
mEnabled = SharedPropertiesUtils.isStatisticsEnabled();
final Context context = MwmApplication.get();
// At the moment we need special handling for Alohalytics to enable/disable logging of events in core C++ code.