Update Helpers

This commit is contained in:
Jamorham 2018-01-25 20:55:02 +00:00
parent 54e2f7a712
commit c8ba4076c6
No known key found for this signature in database
GPG key ID: 0BC5C3E0AAD64DF9

View file

@ -3,11 +3,13 @@ package info.nightscout.androidaps.plugins.PumpInsight.utils;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Handler;
import android.util.Log;
import java.util.HashMap;
import java.util.Map;
import info.nightscout.androidaps.MainApp;
import info.nightscout.androidaps.plugins.PumpInsight.connector.Connector;
/**
@ -59,4 +61,9 @@ public class Helpers {
return false;
}
}
public static boolean runOnUiThreadDelayed(Runnable theRunnable, long delay) {
return new Handler(MainApp.instance().getMainLooper()).postDelayed(theRunnable, delay);
}
}