예제 #1
0
 void internalNotifyRegistrant(Object obj, Throwable throwable) {
   Handler handler = getHandler();
   if (handler == null) {
     clear();
   } else {
     Message message = Message.obtain();
     message.what = what;
     message.obj = new AsyncResult(userObj, obj, throwable);
     handler.sendMessage(message);
   }
 }
예제 #2
0
 public Message messageForRegistrant() {
   Handler handler = getHandler();
   Message message;
   if (handler == null) {
     clear();
     message = null;
   } else {
     message = handler.obtainMessage();
     message.what = what;
     message.obj = userObj;
   }
   return message;
 }