@Override
 public boolean handleMessage(Message msg) {
   if (msg.what == MSG_RUN) {
     ((Runnable) msg.obj).run();
     return true;
   }
   if (callback != null) {
     return callback.handleMessage(msg);
   }
   return false;
 }
Ejemplo n.º 2
0
  public boolean handleMessage(Message message) {
    if (message.what == MSG_RUN) {
      ((Runnable) message.obj).run();

      return true;
    }

    if (callback != null) {
      return callback.handleMessage(message);
    }

    return false;
  }