Update Helpers
This commit is contained in:
parent
54e2f7a712
commit
c8ba4076c6
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue