Ejemplo n.º 1
0
 @Implementation
 public void postInvalidateDelayed(long delayMilliseconds) {
   ShadowApplication.getInstance()
       .getForegroundThreadScheduler()
       .postDelayed(
           new Runnable() {
             @Override
             public void run() {
               realView.invalidate();
             }
           },
           delayMilliseconds);
 }
Ejemplo n.º 2
0
 @Implementation
 public void postDelayed(Runnable action, long delayMills) {
   ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(action, delayMills);
 }
Ejemplo n.º 3
0
 @Implementation
 public void post(Runnable action) {
   ShadowApplication.getInstance().getForegroundThreadScheduler().post(action);
 }