Ejemplo n.º 1
0
 /**
  * @see com.jdroid.android.billing.BillingManager#checkResponseCode(long,
  *     com.jdroid.android.billing.BillingResponseCode)
  */
 @Override
 public void checkResponseCode(long requestId, BillingResponseCode responseCode) {
   BillingRequest request = sentRequests.get(requestId);
   if (request != null) {
     Log.d(TAG, request.getClass().getSimpleName() + " response code: " + responseCode);
     request.responseCodeReceived(responseCode);
   }
   sentRequests.remove(requestId);
 }
 private void checkResponseCode(long requestId, ResponseCode responseCode) {
   BillingRequest request = (BillingRequest) mSentRequests.get(Long.valueOf(requestId));
   if (request != null) {
     Log.d(
         "Billing Service - [Don]",
         new StringBuilder(String.valueOf(request.getClass().getSimpleName()))
             .append(": ")
             .append(responseCode)
             .toString());
     request.responseCodeReceived(responseCode);
   }
   mSentRequests.remove(Long.valueOf(requestId));
 }