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