add simple tracking (no opt-in yet!)
This commit is contained in:
@@ -26,6 +26,7 @@ import android.accounts.AccountManager;
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.os.Handler;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.widget.Toast;
|
||||
|
||||
@@ -41,6 +42,7 @@ import timber.log.Timber.DebugTree;
|
||||
|
||||
|
||||
public class KeychainApplication extends Application {
|
||||
TrackingManager trackingManager;
|
||||
|
||||
/**
|
||||
* Called when the application is starting, before any activity, service, or receiver objects
|
||||
@@ -105,6 +107,9 @@ public class KeychainApplication extends Application {
|
||||
KeyserverSyncManager.updateKeyserverSyncScheduleAsync(this, Constants.DEBUG_KEYSERVER_SYNC);
|
||||
|
||||
TemporaryFileProvider.scheduleCleanupImmediately();
|
||||
|
||||
trackingManager = TrackingManager.getInstance(getApplicationContext());
|
||||
trackingManager.initialize(this);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -152,4 +157,8 @@ public class KeychainApplication extends Application {
|
||||
Timber.plant(new DebugTree());
|
||||
}
|
||||
}
|
||||
|
||||
public TrackingManager getTrackingManager() {
|
||||
return trackingManager;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user