public synchronized boolean canThreadDecoding ( Thread t ) { ThreadStatus status = mThreadStatus . get ( t ) ; if ( status == null ) { // allow decoding by default return true ; } return ( status . mState != State . CANCEL ) ; }
The following three methods are used to keep track of which thread is being disabled for bitmap decoding .