forked from organicmaps/organicmaps
[android] Disabled 3party statistics in Debug mode, like it was always done on iOS.
This commit is contained in:
parent
f90387e9dc
commit
30eb4033fa
1 changed files with 4 additions and 1 deletions
|
@ -282,7 +282,10 @@ public enum Statistics
|
|||
|
||||
public boolean isStatisticsEnabled()
|
||||
{
|
||||
return MwmApplication.get().nativeGetBoolean(KEY_STAT_ENABLED, true);
|
||||
boolean isStatisticsEnabledByDefault = true;
|
||||
if (BuildConfig.DEBUG)
|
||||
isStatisticsEnabledByDefault = false;
|
||||
return MwmApplication.get().nativeGetBoolean(KEY_STAT_ENABLED, isStatisticsEnabledByDefault);
|
||||
}
|
||||
|
||||
public void setStatEnabled(boolean isEnabled)
|
||||
|
|
Loading…
Add table
Reference in a new issue