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