private synchronized boolean cancel ( final int id , final boolean mayInterrupt , final boolean removeOperation ) { final RunningOperation runningOperation = mRunningOperations . get ( id ) ; if ( runningOperation != null ) { if ( removeOperation ) { mRunningOperations . remove ( id ) ; } mCancelledOperations . add ( id ) ; return runningOperation . cancel ( mayInterrupt ) ; } else { return false ; } }
Cancels running operation .