@Implementation public void postInvalidateDelayed(long delayMilliseconds) { ShadowApplication.getInstance() .getForegroundThreadScheduler() .postDelayed( new Runnable() { @Override public void run() { realView.invalidate(); } }, delayMilliseconds); }
@Implementation public void postDelayed(Runnable action, long delayMills) { ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(action, delayMills); }
@Implementation public void post(Runnable action) { ShadowApplication.getInstance().getForegroundThreadScheduler().post(action); }