[android] Fixed bug with uninitialized paths.

This commit is contained in:
Dmitry Yunitsky 2016-09-12 10:39:45 +03:00
parent 9381d4e382
commit 734936f0bd

View file

@ -107,9 +107,6 @@ public class MwmApplication extends Application
initHockeyApp();
initCrashlytics();
initPushWoosh();
// Workaround to initialize alohalytics for transferring http requests.
// Http wrapper should be cut out from the alohalytics in the future.
Statistics s = Statistics.INSTANCE;
String settingsPath = getSettingsPath();
new File(settingsPath).mkdirs();
@ -119,6 +116,10 @@ public class MwmApplication extends Application
nativeInitPlatform(getApkPath(), getStoragePath(settingsPath), getTempPath(), getObbGooglePath(),
BuildConfig.FLAVOR, BuildConfig.BUILD_TYPE, UiUtils.isTablet());
// Workaround to initialize alohalytics for transferring http requests.
// Http wrapper should be cut out from the alohalytics in the future.
Statistics s = Statistics.INSTANCE;
mPrefs = getSharedPreferences(getString(R.string.pref_file_name), MODE_PRIVATE);
mBackgroundTracker = new AppBackgroundTracker();
TrackRecorder.init();