src/main/java/ru/mail/dondokidon/extensions/PagerAdapterHandler.java
/**
     * Instantiate and store determined info in relative positions to passed position
     * if it is not stored yet.
     *
     * @param middlePos Middle position
     */
Instantiate and store determined info in relative positions to passed position
if it is not stored yet.

@param middlePos Middle position
Instantiate and store determined info in relative positions to passed position if it is not stored yet . @param middlePos Middle position
private void preloadInfo(int middlePos) {
        if (mAdapter == null || (middlePos < 0 || middlePos > mAdapter.getCount()))
            return;
        final ArrayList<Integer> Positions = countRelativePositions(middlePos);
        mAdapter.startUpdate(Target);
        for (int Position : Positions) {
            boolean isPreloaded = false;
            IH Item = InfoHolder.get(Position);
            if (Item != null) {
                    isPreloaded = true;
            }
            if (!isPreloaded) {
                IH item = mAdapter.instantiateItem(Position);
                item.position = Position;
                InfoHolder.put(Position, item);
            }
        }
        mAdapter.finishUpdate(Target);
        if (Debug)
            Log.i(TAG, "Preloaded info after preloadInfo(): " + InfoHolder);
    }
private void preloadInfo ( int middlePos ) { if ( mAdapter == null || ( middlePos < 0 || middlePos > mAdapter . getCount ( ) ) ) return ; final ArrayList < Integer > Positions = countRelativePositions ( middlePos ) ; mAdapter . startUpdate ( Target ) ; for ( int Position : Positions ) { boolean isPreloaded = false ; IH Item = InfoHolder . get ( Position ) ; if ( Item != null ) { isPreloaded = true ; } if ( ! isPreloaded ) { IH item = mAdapter . instantiateItem ( Position ) ; item . position = Position ; InfoHolder . put ( Position , item ) ; } } mAdapter . finishUpdate ( Target ) ; if ( Debug ) Log . i ( TAG , "Preloaded info after preloadInfo(): " + InfoHolder ) ; }
Instantiate and store determined info in relative positions to passed position
 if it is not stored yet.
Instantiate and store determined info in relative positions to passed position if it is not stored yet .
//                if (position == mAdapter.getSongDataQueuePosition(Item)) { //                }