@Override public boolean isCancelled() { if (mRequest == null) { return false; } return mRequest.isCanceled(); }
@Override public synchronized boolean cancel(boolean mayInterruptIfRunning) { if (mRequest == null) { return false; } if (!isDone()) { mRequest.cancel(); return true; } else { return false; } }