question: public CloseableAnimatedBitmap ( List < Bitmap > bitmaps , List < Integer > durations , ResourceReleaser < Bitmap > resourceReleaser ) { Preconditions . checkNotNull ( bitmaps ) ; Preconditions . checkState ( bitmaps . size ( ) >= 1 , "Need at least 1 frame!" ) ; mBitmaps = new ArrayList < > ( ) ; mBitmapReferences = new ArrayList < > ( ) ; for ( Bitmap bitmap : bitmaps ) { mBitmapReferences . add ( CloseableReference . of ( bitmap , resourceReleaser ) ) ; mBitmaps . add ( bitmap ) ; } mDurations = Preconditions . checkNotNull ( durations ) ; Preconditions . checkState ( mDurations . size ( ) == mBitmaps . size ( ) , "Arrays length mismatch!" ) ; }
target:  Creates a new instance of a CloseableStaticBitmap.