Fabric-Log combo init to get an idea of user count.
This commit is contained in:
parent
01d49f9e52
commit
f7ed34532a
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,9 @@ package info.nightscout.androidaps.plugins.PumpCombo;
|
|||
import android.os.SystemClock;
|
||||
import android.support.annotation.NonNull;
|
||||
|
||||
import com.crashlytics.android.answers.Answers;
|
||||
import com.crashlytics.android.answers.CustomEvent;
|
||||
|
||||
import org.json.JSONObject;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -344,6 +347,8 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
|||
}
|
||||
|
||||
private synchronized void initializePump() {
|
||||
Answers.getInstance().logCustom(new CustomEvent("ComboInit")
|
||||
.putCustomAttribute("buildversion", BuildConfig.BUILDVERSION));
|
||||
long maxWait = System.currentTimeMillis() + 15 * 1000;
|
||||
while (!ruffyScripter.isPumpAvailable()) {
|
||||
log.debug("Waiting for ruffy service to come up ...");
|
||||
|
|
Loading…
Reference in a new issue