- reenable fabric events

This commit is contained in:
Andy Rozman 2020-08-10 14:18:04 +01:00
parent 4d04353e7b
commit 1ebb7144ec
2 changed files with 14 additions and 7 deletions

View file

@ -485,4 +485,8 @@ public abstract class PumpPluginAbstract extends PumpPluginBase implements PumpI
return new PumpEnactResult(getInjector()).success(false).enacted(false).comment(getResourceHelper().gs(resourceId));
}
protected FabricPrivacy getFabricPrivacy() {
return this.fabricPrivacy;
}
}

View file

@ -4,6 +4,7 @@ import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.os.SystemClock;
@ -24,6 +25,7 @@ import javax.inject.Inject;
import javax.inject.Singleton;
import dagger.android.HasAndroidInjector;
import info.nightscout.androidaps.BuildConfig;
import info.nightscout.androidaps.MainApp;
import info.nightscout.androidaps.R;
import info.nightscout.androidaps.activities.ErrorHelperActivity;
@ -642,13 +644,14 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump
finishAction("Omnipod Pump");
// if (!sentIdToFirebase) {
// Bundle params = new Bundle();
// params.putString("version", BuildConfig.VERSION);
// MainApp.getFirebaseAnalytics().logEvent("OmnipodPumpInit", params);
//
// sentIdToFirebase = true;
// }
if (!sentIdToFirebase) {
Bundle params = new Bundle();
params.putString("version", BuildConfig.VERSION);
getFabricPrivacy().getFirebaseAnalytics().logEvent("OmnipodPumpInit", params);
sentIdToFirebase = true;
}
isInitialized = true;