Пример #1
0
 public static void postErrorEvent(int errorCode, ICommandListener listener) {
   if (listener != null) {
     try {
       listener.onError(errorCode);
     } catch (RemoteException e) {
       Timber.e(e, e.getMessage());
     }
   }
 }
Пример #2
0
 public static void postSuccessEvent(ICommandListener listener) {
   if (listener != null) {
     try {
       listener.onSuccess();
     } catch (RemoteException e) {
       Timber.e(e, e.getMessage());
     }
   }
 }